[PR #2131] [MERGED] fix(deps): update module github.com/labstack/echo/v4 to v5 #5497

Closed
opened 2026-04-16 13:40:37 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-vikunja/vikunja/pull/2131
Author: @renovate[bot]
Created: 1/22/2026
Status: Merged
Merged: 1/24/2026
Merged by: @kolaente

Base: mainHead: renovate/github.com-labstack-echo-v4-5.x


📝 Commits (10+)

  • 09a2296 fix(deps): update module github.com/labstack/echo/v4 to v5
  • 8a38f26 fix(deps): complete Echo v5 migration with breaking changes fixes
  • dd62e9a fix(deps): handle Echo v5 predefined errors using HTTPStatusCoder interface
  • 69e9408 fix(deps): update expand query param binding for Echo v5
  • daa7401 cleanup
  • f5a398f fix: add logging
  • f756c80 fix(deps): add .Wrap(err) to HTTPError calls for Echo v5 error chain preservation
  • 8d18a6e cleanup
  • 8bd777a fix: test
  • 9da16ce fix: hide internal error details from clients in 500 responses

📊 Changes

63 files changed (+665 additions, -615 deletions)

View changed files

📝 examples/plugins/example/main.go (+3 -3)
📝 go.mod (+0 -8)
📝 go.sum (+2 -24)
📝 pkg/cmd/web.go (+56 -23)
📝 pkg/log/echo_logger.go (+4 -163)
📝 pkg/log/logging.go (+14 -5)
📝 pkg/log/mail_logger.go (+1 -1)
📝 pkg/log/watermill_logger.go (+1 -1)
📝 pkg/log/xorm_logger.go (+1 -1)
📝 pkg/models/api_routes.go (+109 -49)
📝 pkg/models/task_collection.go (+1 -1)
📝 pkg/models/tasks.go (+1 -1)
📝 pkg/modules/auth/auth.go (+4 -4)
📝 pkg/modules/auth/openid/openid.go (+3 -3)
📝 pkg/modules/background/handler/background.go (+19 -19)
📝 pkg/modules/background/unsplash/proxy.go (+4 -4)
📝 pkg/modules/migration/handler/common.go (+2 -2)
📝 pkg/modules/migration/handler/handler.go (+5 -5)
📝 pkg/modules/migration/handler/handler_file.go (+3 -3)
📝 pkg/plugins/interfaces.go (+1 -1)

...and 43 more files

📄 Description

Closes https://github.com/go-vikunja/vikunja/pull/2133

This PR contains the following updates:

Package Change Age Confidence
github.com/labstack/echo/v4 v4.15.0v5.0.0 age confidence

Release Notes

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

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 - At any time (no schedule defined), 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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-vikunja/vikunja/pull/2131 **Author:** [@renovate[bot]](https://github.com/apps/renovate) **Created:** 1/22/2026 **Status:** ✅ Merged **Merged:** 1/24/2026 **Merged by:** [@kolaente](https://github.com/kolaente) **Base:** `main` ← **Head:** `renovate/github.com-labstack-echo-v4-5.x` --- ### 📝 Commits (10+) - [`09a2296`](https://github.com/go-vikunja/vikunja/commit/09a229608321a3ff0a553b95c8a1c52f2b138542) fix(deps): update module github.com/labstack/echo/v4 to v5 - [`8a38f26`](https://github.com/go-vikunja/vikunja/commit/8a38f264cdc0a9b766149528189abe00364f49b4) fix(deps): complete Echo v5 migration with breaking changes fixes - [`dd62e9a`](https://github.com/go-vikunja/vikunja/commit/dd62e9a332873b740c857a85bd0901cf569bb186) fix(deps): handle Echo v5 predefined errors using HTTPStatusCoder interface - [`69e9408`](https://github.com/go-vikunja/vikunja/commit/69e9408aeee27628b5ec886b88c5f79ef8a0232b) fix(deps): update expand query param binding for Echo v5 - [`daa7401`](https://github.com/go-vikunja/vikunja/commit/daa7401fe4121e064261587fe22b482acf9df4c9) cleanup - [`f5a398f`](https://github.com/go-vikunja/vikunja/commit/f5a398fbc4765735754725af9a0c8f81e7a36ba1) fix: add logging - [`f756c80`](https://github.com/go-vikunja/vikunja/commit/f756c809c8a9019cf944a575814ab41f832ad430) fix(deps): add .Wrap(err) to HTTPError calls for Echo v5 error chain preservation - [`8d18a6e`](https://github.com/go-vikunja/vikunja/commit/8d18a6ef2b708c28162c3323ec79602e2ce69b58) cleanup - [`8bd777a`](https://github.com/go-vikunja/vikunja/commit/8bd777a135735bbbe2e3fd21fc8ff36289b9b3bb) fix: test - [`9da16ce`](https://github.com/go-vikunja/vikunja/commit/9da16ceba06e4f59e51dc2b938e35bde4597b503) fix: hide internal error details from clients in 500 responses ### 📊 Changes **63 files changed** (+665 additions, -615 deletions) <details> <summary>View changed files</summary> 📝 `examples/plugins/example/main.go` (+3 -3) 📝 `go.mod` (+0 -8) 📝 `go.sum` (+2 -24) 📝 `pkg/cmd/web.go` (+56 -23) 📝 `pkg/log/echo_logger.go` (+4 -163) 📝 `pkg/log/logging.go` (+14 -5) 📝 `pkg/log/mail_logger.go` (+1 -1) 📝 `pkg/log/watermill_logger.go` (+1 -1) 📝 `pkg/log/xorm_logger.go` (+1 -1) 📝 `pkg/models/api_routes.go` (+109 -49) 📝 `pkg/models/task_collection.go` (+1 -1) 📝 `pkg/models/tasks.go` (+1 -1) 📝 `pkg/modules/auth/auth.go` (+4 -4) 📝 `pkg/modules/auth/openid/openid.go` (+3 -3) 📝 `pkg/modules/background/handler/background.go` (+19 -19) 📝 `pkg/modules/background/unsplash/proxy.go` (+4 -4) 📝 `pkg/modules/migration/handler/common.go` (+2 -2) 📝 `pkg/modules/migration/handler/handler.go` (+5 -5) 📝 `pkg/modules/migration/handler/handler_file.go` (+3 -3) 📝 `pkg/plugins/interfaces.go` (+1 -1) _...and 43 more files_ </details> ### 📄 Description Closes https://github.com/go-vikunja/vikunja/pull/2133 This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [github.com/labstack/echo/v4](https://redirect.github.com/labstack/echo) | `v4.15.0` → `v5.0.0` | ![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2flabstack%2fecho%2fv4/v5.0.0?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2flabstack%2fecho%2fv4/v4.15.0/v5.0.0?slim=true) | --- ### Release Notes <details> <summary>labstack/echo (github.com/labstack/echo/v4)</summary> ### [`v5.0.0`](https://redirect.github.com/labstack/echo/blob/HEAD/CHANGELOG.md#v500---2026-01-18) [Compare Source](https://redirect.github.com/labstack/echo/compare/v4.15.0...v5.0.0) 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](./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: ```bash 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 ```bash 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. </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), 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. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/go-vikunja/vikunja). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi44NS4xIiwidXBkYXRlZEluVmVyIjoiNDIuOTIuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiZGVwZW5kZW5jaWVzIl19--> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-16 13:40:37 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vikunja#5497