Skip to content

Update module github.com/labstack/echo/v4 to v5 - autoclosed#1291

Closed
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/github.com-labstack-echo-v4-5.x
Closed

Update module github.com/labstack/echo/v4 to v5 - autoclosed#1291
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/github.com-labstack-echo-v4-5.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented Jan 26, 2026

This PR contains the following updates:

Package Change Age Confidence
github.com/labstack/echo/v4 v4.15.1v5.0.4 age confidence

Release Notes

labstack/echo (github.com/labstack/echo/v4)

v5.0.4

Compare Source

Enhancements

v5.0.3

Compare Source

Security

  • Fix directory traversal vulnerability under Windows in Static middleware when default Echo filesystem is used. Reported by @​shblue21.

This applies to cases when:

  • Windows is used as OS
  • middleware.StaticConfig.Filesystem is nil (default)
  • echo.Filesystem is has not been set explicitly (default)

Exposure is restricted to the active process working directory and its subfolders.

v5.0.2

Compare Source

Security

  • Fix Static middleware with config.Browse=true lists all files/subfolders from config.Filesystem root and not starting from config.Root in #​2887

v5.0.1

Compare Source

v5.0.0

Compare Source

Echo v5 is maintenance release with major breaking changes

  • Context is now struct instead of interface and we can add method to it in the future in minor versions.
  • Adds new Router interface for possible new routing implementations.
  • Drops old logging interface and uses moderm log/slog instead.
  • Rearranges alot of methods/function signatures to make them more consistent.

Upgrade notes and v4 support:

  • Echo v4 is supported with security* updates and bug fixes until 2026-12-31
  • If you are using Echo in a production environment, it is recommended to wait until after 2026-03-31 before upgrading.
  • Until 2026-03-31, any critical issues requiring breaking v5 API changes will be addressed, even if this violates semantic versioning.

See API_CHANGES_V5.md for public API changes between v4 and v5, notes on upgrading.

Upgrading TLDR:

If you are using Linux you can migrate easier parts like that:

find . -type f -name "*.go" -exec sed -i 's/ echo.Context/ *echo.Context/g' {} +
find . -type f -name "*.go" -exec sed -i 's/echo\/v4/echo\/v5/g' {} +

macOS

find . -type f -name "*.go" -exec sed -i '' 's/ echo.Context/ *echo.Context/g' {} +
find . -type f -name "*.go" -exec sed -i '' 's/echo\/v4/echo\/v5/g' {} +

or in your favorite IDE

Replace all:

  1. echo.Context -> *echo.Context
  2. echo/v4 -> echo/v5

This should solve most of the issues. Probably the hardest part is updating all the tests.


Configuration

📅 Schedule: Branch creation - "on monday" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate
Copy link
Copy Markdown
Contributor Author

renovate Bot commented Jan 26, 2026

ℹ️ Artifact update notice

File name: transcoder/go.mod

In order to perform the update(s) described in the table above, Renovate ran the go get command, which resulted in the following additional change(s):

  • The go directive was updated for compatibility reasons

Details:

Package Change
go 1.24.2 -> 1.25.0

@acelinkio
Copy link
Copy Markdown
Collaborator

Will need to do an MR with both echo+jwt changes. Quick glance looks like all of this is related to small (yet breaking) changeto how context is setup. From release notes:

find . -type f -name "*.go" -exec sed -i 's/ echo.Context/ *echo.Context/g' {} +
find . -type f -name "*.go" -exec sed -i 's/echo\/v4/echo\/v5/g' {} +

@acelinkio
Copy link
Copy Markdown
Collaborator

acelinkio commented Jan 26, 2026

Will need to wait on open-telemetry/opentelemetry-go-contrib#8457 before upgrading to echo v5.

labstack/echo-contrib#141

@renovate renovate Bot force-pushed the renovate/github.com-labstack-echo-v4-5.x branch 3 times, most recently from fb48a74 to 663a270 Compare February 7, 2026 21:18
@renovate renovate Bot force-pushed the renovate/github.com-labstack-echo-v4-5.x branch 2 times, most recently from 712c346 to 18606d4 Compare February 11, 2026 14:40
@renovate renovate Bot changed the title fix(deps): update module github.com/labstack/echo/v4 to v5 fix(deps): update module github.com/labstack/echo/v4 to v5 - autoclosed Feb 15, 2026
@renovate renovate Bot closed this Feb 15, 2026
@renovate renovate Bot deleted the renovate/github.com-labstack-echo-v4-5.x branch February 15, 2026 09:44
@renovate renovate Bot changed the title fix(deps): update module github.com/labstack/echo/v4 to v5 - autoclosed fix(deps): update module github.com/labstack/echo/v4 to v5 Feb 16, 2026
@renovate renovate Bot reopened this Feb 16, 2026
@renovate renovate Bot force-pushed the renovate/github.com-labstack-echo-v4-5.x branch 2 times, most recently from 18606d4 to 7b5f3c6 Compare February 16, 2026 01:56
@renovate renovate Bot changed the title fix(deps): update module github.com/labstack/echo/v4 to v5 Update module github.com/labstack/echo/v4 to v5 Feb 16, 2026
@acelinkio
Copy link
Copy Markdown
Collaborator

working on updating a sample project to echo v5. Sharing some notes here to prepare.

Boilerplate changes that can be applied.

find . -type f -name "*.go" -exec sed -i 's/ echo.Context/ *echo.Context/g' {} +
find . -type f -name "*.go" -exec sed -i 's/echo\/v4/echo\/v5/g' {} +
find . -type f -name "*.go" -exec sed -i 's/echo-jwt\/v4/echo-jwt\/v5/g' {} +

find . -type f -name "*.go" -exec sed -i 's|"go.opentelemetry.io/contrib/instrumentation/github.com/labstack/echo/otelecho"|echootel "github.com/labstack/echo-opentelemetry"|g' {} +
find . -type f -name "*.go" -exec sed -i 's/otelecho\./echootel./g' {} +
find . -type f -name "*.go" -exec sed -i 's/echootel\.Middleware/echootel.NewMiddleware/g' {} +

go get github.com/labstack/echo-jwt/v5@latest
go get github.com/labstack/echo/v5@latest
go get github.com/labstack/echo-jwt/v5@latest
go get github.com/labstack/echo-opentelemetry@latest
go mod tidy

There are a number of additional changes that need to happen as outlined in https://github.com/labstack/echo/blob/master/API_CHANGES_V5.md. Will need to update Echo errorhandler, server startup, and assigning logger (they default to slog, so we can purge our custom adapter)

@renovate renovate Bot changed the title Update module github.com/labstack/echo/v4 to v5 fix(deps): update module github.com/labstack/echo/v4 to v5 Feb 19, 2026
@renovate renovate Bot force-pushed the renovate/github.com-labstack-echo-v4-5.x branch 4 times, most recently from 77bade3 to 42defc2 Compare February 25, 2026 11:55
@renovate renovate Bot force-pushed the renovate/github.com-labstack-echo-v4-5.x branch 2 times, most recently from c6a8e52 to 3a20d7e Compare March 5, 2026 21:00
@renovate renovate Bot changed the title fix(deps): update module github.com/labstack/echo/v4 to v5 fix(deps): update module github.com/labstack/echo/v4 to v5 - autoclosed Mar 12, 2026
@renovate renovate Bot closed this Mar 12, 2026
@renovate renovate Bot changed the title fix(deps): update module github.com/labstack/echo/v4 to v5 - autoclosed Update module github.com/labstack/echo/v4 to v5 Mar 16, 2026
@renovate renovate Bot reopened this Mar 16, 2026
@renovate renovate Bot force-pushed the renovate/github.com-labstack-echo-v4-5.x branch from 847bcaf to 3a20d7e Compare March 16, 2026 01:10
@renovate renovate Bot force-pushed the renovate/github.com-labstack-echo-v4-5.x branch from 3a20d7e to 847bcaf Compare March 16, 2026 01:10
@renovate renovate Bot changed the title Update module github.com/labstack/echo/v4 to v5 fix(deps): update module github.com/labstack/echo/v4 to v5 Mar 27, 2026
@renovate renovate Bot changed the title fix(deps): update module github.com/labstack/echo/v4 to v5 Update module github.com/labstack/echo/v4 to v5 Mar 28, 2026
@renovate renovate Bot changed the title Update module github.com/labstack/echo/v4 to v5 Update module github.com/labstack/echo/v4 to v5 - autoclosed Mar 29, 2026
@renovate renovate Bot closed this Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant