x/build/internal/installer/windowsmsi: Windows installer always adds %USERPROFILE%\go\bin to PATH even if user overrode GOPATH to point to another directory #66633
Labels
Builders
x/build issues (builders, bots, dashboards)
FeatureRequest
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
OS-Windows
Milestone
Go version
go version go1.22.1 windows/amd64
Output of
go env
in your module/workspace:What did you do?
What did you see happen?
Despite that I have
GOPATH=E:\Tools\Go\gopath
andE:\Tools\Go\gopath\bin
is present in myPATH
, the installer still appends the default value%USERPROFILE%\go\bin
to my PATH.What did you expect to see?
Expected to not have
PATH
modified by the installer.At the very least, it should ask if the user would like to add
%GOPATH%\bin
to PATH during installation, similar to how other software does it, e.g. OpenJDK (Eclipse Temurin) does that.The text was updated successfully, but these errors were encountered: