Closed nehaboob closed 4 years ago
@nehaboob: The main challenge here seems that you are
go get
instead of a dependency management tool like https://github.com/golang/depIn #82 we updated rmq to embrace Go modules. In your case your go get
call will always just fetch the latest versions of all your dependencies, which could be considered dangerous with dependencies which support Go modules, like rmq and the underlying https://github.com/go-redis/redis.
So the concrete issue here is that go-redis just switch their latest version to be go-redis/v8, while rmq/v2 still uses go-redis/v7.
Here are some things you can try:
v7
of go-redis.v7
of the go-redis repo into your GOPATH. According to your output above that would be /go/src/github.com/go-redis/redis/v7
.Hope that helps.
@wellle thanks for the suggestion, it was really helpful. I updated my code to use go modules and its working fine now.
Getting below error while getting rmq package into docker image. Let me know if more information is required.