Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sixcolors/gofiber-storage-memcache-modtest
demo an issue with gofiber utils on updating go mods
https://github.com/sixcolors/gofiber-storage-memcache-modtest
Last synced: 11 days ago
JSON representation
demo an issue with gofiber utils on updating go mods
- Host: GitHub
- URL: https://github.com/sixcolors/gofiber-storage-memcache-modtest
- Owner: sixcolors
- Created: 2022-10-28T23:22:47.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-30T13:05:12.000Z (about 2 years ago)
- Last Synced: 2024-10-05T17:41:16.891Z (about 1 month ago)
- Language: Go
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# fiber-storage-memcache-modtest
demo an issue with github.com/gofiber/storage/memcache where updating dependancies causes an error
## details
Related to https://github.com/gofiber/storage/issues/591When updating dependancies using `go get -u` `github.com/gofiber/[email protected]` is upgraded to `github.com/gofiber/[email protected]` this causes the following error:
```
# github.com/gofiber/storage/memcache
../go/pkg/mod/github.com/gofiber/storage/[email protected]/memcache.go:24:36: undefined: utils.Trim
```## the cause
v1.0.0 github.com/gofiber/utils has breaking API changes but the go.mod was not changed to avoid a dependancy update
```
module github.com/gofiber/utils/go 1.19
...
```it should have been
```
module github.com/gofiber/utils/v1go 1.19
...
```## testing a fix
[@efectn](https://github.com/efectn) proposed we release `github.com/gofiber/[email protected]` at the commit of tag `v0.1.2` and a create a new releae `github.com/gofiber/utils/[email protected]` with the gtihub.com/gofiber/fiber utils v3-beta changes.
`github.com/gofiber/utils/v2` was for chosen because v1 had already been released publically.
```
module github.com/gofiber/utils/v2go 1.19
...
```Tested and working for memcache sotrage package and new utils in this test project.