You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thank you for creating this library! Unfortunately there is an issue with how this repo includes staticcheck in the go.mod and tools.go files. Despite staticcheck only being used for linting, as a dev-only dependency, it is being pulled in as a standard dependency. This causes any other go package that uses go-cache to also pull in staticcheck and all of its dependencies, significantly increasing download and build times.
Since your Makefile simply invoked staticcheck as staticcheck ./..., this doesn't actually need staticcheck to be a dependency listed in go.mod, you can instead install it using go install honnef.co/go/tools/cmd/staticcheck@latest. This should let you remove it from the go.mod and tools.go files.
The text was updated successfully, but these errors were encountered:
Thank you for creating this library! Unfortunately there is an issue with how this repo includes staticcheck in the
go.mod
andtools.go
files. Despite staticcheck only being used for linting, as a dev-only dependency, it is being pulled in as a standard dependency. This causes any other go package that usesgo-cache
to also pull in staticcheck and all of its dependencies, significantly increasing download and build times.Since your Makefile simply invoked staticcheck as
staticcheck ./...
, this doesn't actually need staticcheck to be a dependency listed in go.mod, you can instead install it usinggo install honnef.co/go/tools/cmd/staticcheck@latest
. This should let you remove it from the go.mod and tools.go files.The text was updated successfully, but these errors were encountered: