cmd/go: install package for all users #33234
Labels
FeatureRequest
Issues asking for a new feature that does not need a proposal.
FrozenDueToAge
NeedsDecision
Feedback is required from experts, contributors, and/or the community before a change can be made.
WaitingForInfo
Issue is not actionable because of missing required information, which needs to be provided.
Milestone
Global
go get
As it is,
go get
installs to$GOPATH/src
, traditionally/home/$USER/go/src
. Unfortunately, this means that modules cannot be installed for all users, unless everyone shares a$GOPATH
(and all have access to that directory). This would be very unconventional for Linux.Since there is already a global
$GOROOT/src
, there should be an option togo get
packages to that location, making them available for all users.Use cases:
Solution:
Add a global flag to go get (e.g.
go get -g
) that installs to$GOROOT
instead of$GOPATH
.The text was updated successfully, but these errors were encountered: