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
Go Modules is the official Go dependency management tool, and it’s directly implemented into the go toolchain.
We need this in order to:
Automatically detect import statements and then update dependencies graph, lock, download, and install appropriate versions of packages.
Quoting golang official docs:
In Go 1.14, module support is considered ready for production use, and all users are encouraged to migrate to modules from other dependency management systems.
(Inside $GOPATH/src, for compatibility, the go command still runs in the old GOPATH mode, even if a go.mod is found. See the go command documentation for details.) Starting in Go 1.13, module mode will be the default for all development.
minimum specified version
we will need to ensure we have a go.mod on all go clients ( and test at least with the minimum 1.12 go version to say we support >=1.12 ). Ideally it should be 1.11 but redigo outputs an error:
$ gvm use go1.11
Now using version go1.11
filipe@filipe-ThinkPad-T490:~/go/src/github.com/RedisBloom/redisbloom-go$ GOCMD="GO111MODULE=on go" make
GO111MODULE=on go get -t -v ./...
go get: -t flag is a no-op when using modules
github.com/gomodule/redigo/redis
go build github.com/gomodule/redigo/redis: module requires Go 1.14
make: *** [Makefile:24: get] Error 1
The text was updated successfully, but these errors were encountered:
why we need it?
Go Modules is the official Go dependency management tool, and it’s directly implemented into the go toolchain.
We need this in order to:
Quoting golang official docs:
Also quoting the golang official blog, the reason why this does not break compatibility with previous go versions:
minimum specified version
we will need to ensure we have a go.mod on all go clients ( and test at least with the minimum 1.12 go version to say we support >=1.12 ). Ideally it should be 1.11 but redigo outputs an error:
The text was updated successfully, but these errors were encountered: