- macOS 10.14.6
- go version go1.15.5 darwin/amd64
I’m trying to build the package https://github.com/Seklfreak/discord-image-downloader-go, using the command go build ...
. It runs through a scary amount of dependency/module related messages before falling down with…
go: github.com/go-kit/kit/examples/stringsvc4 imports
github.com/nats-io/go-nats: github.com/nats-io/go-nats@v1.8.1: parsing go.mod:
module declares its path as: github.com/nats-io/nats.go
but was required as: github.com/nats-io/go-nats
A spot of research reveals that this is a problem that occurred because the authors of nats-io
introduced a breaking change in a path or file setting. I think this was the case, at least… whenever I get go modules
related errors, my mind clouds over and I get the image of Russ Cox telling everyone that it’s all working to plan
I’ve tried some of the suggested fixes, but maybe they are out of date, but nothing seems to work.
Can anyone spell out in simple terms how I can get https://github.com/Seklfreak/discord-image-downloader-go to build?
UPDATE: Strangely, if I load the main.go
file in VS Code, configured to run with go 1.15.5
, the build succeeds. VS Code must be doing something to mitigate the modules problem…