cmd/go: go get all
tries to update package in GOROOT, throws permission error
#42620
Labels
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
I use Go as provided by my distro's (Arch Linux) package manager. As such, my GOROOT is a directory that my user does not have permission to make changes to.
I also have the
community/libguestfs
package installed for unrelated reasons. This package, however, installs some files to GOROOT:What did you expect to see?
go get all
should continue to work normally.What did you see instead?
Ever since installing this package,
go get all
(with or without-u
) fails withgo get pkg/libguestfs.org/guestfs: mkdir /usr/lib/go/pkg/linux_amd64/pkg: permission denied
.The text was updated successfully, but these errors were encountered: