-
-
Notifications
You must be signed in to change notification settings - Fork 559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go get command fails #2567
Comments
Hello, the commands without qualified version need to be run within a Go module (i.e. the folder or one of its parent needs to have a
mkdir project
cd project
go mod init project
go get go get -u goa.design/goa/v3
go get go get -u goa.design/goa/v3/...
env GO111MODULE=on go get -u goa.design/goa/v3@v3
env GO111MODULE=on go get -u goa.design/goa/v3/...@v3 |
thanks for the quick response @raphael I appreciate it. Yes, I followed the instructions in the Goa site, creating the go module and so on, but it is still not working. A few months ago I could do everything without problems, now I'm working on a new project and following the same steps I can't succeed to get it working. At first (a few weeks ago) I thought it was a temporary issue with a dependency, but this still persists. I ran the steps you mentioned above, let me show you the full output:
Even though this last command fails at different stages (I don't have a lot of experience with go, but I suppose it fetches dependencies asynchronously, which would explain it). I'd assume that the problem is in my local env, but the fact that it's also failing using docker makes me think the issue might be related to something else. BTW, I didn't include the I also tried in a different environment (a workmate's laptop) and I got the same issue. Can you try running the commands from a clean environment (a docker container probably) to double-check you can't reproduce this? Thanks once more for the support 👍 |
I am not able to reproduce this issue with Go 1.4, running in a new container:
Maybe try to upgrade your version of Go? |
Sorry for the delay @raphael. I upgraded Go and the issue was gone, I couldn't reproduce it anymore. |
Thank you for the update. Others have reported the same issue in the past. The list of dependencies defers when the problem happens, for example github.com/coreos/go-systemd gets added which is not a dependency (direct or indirect) of Goa. It seems to be the same set of additional dependencies too, really not sure what's causing it. |
I've been trying to run the
go get
command locally (on a new project), but it fails with ago get: error loading module requirements
message.I tried using
go get -u goa.design/goa/v3
as indicated here withGO111MODULE=on
env GO111MODULE=on go get -u goa.design/goa/v3/...@v3
as indicated in github (with this I get ano matching versions for query "v3"
message)using docker :
and it's still failing on the go get step.
I locally use:
The text was updated successfully, but these errors were encountered: