-
Notifications
You must be signed in to change notification settings - Fork 231
go build runtime/cgo: open /usr/local/go/pkg/linux_amd64/runtime/cgo.a: permission denied #15
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
Comments
I tried different go versions, and I found out the following: go1.9 ok:
go1.10 has the same error:
A idea what to look for? |
Sorry, I have no idea to suggest. However I found this issue: golang/go#25138
It seems the build operation is trying to overwrite the original cgo.a file provided by the Go binary install. Can you try to build without the -i flag ? |
Wow, good catch! I already looked around but I may have missed that. without -i is indeed working. I think also that -i is obsolete in my case, since the project has vendoring, so no need to download and install anything ("The -i flag installs the packages that are dependencies of the target.") So then, sorry for bothering. Thank you |
I don't know how this happened, I was using update-golang.sh a while and was always good. Can't remember which golang version I was when this error happened, so I was thinking, give the update a go. The following commands are after installing 1.11.1 already.
Installing:
Build a project:
go info:
Persmissions look good to me:
The text was updated successfully, but these errors were encountered: