cmd/go: Setting an invalid path with "go env -w GOTMPDIR=x" prevents use of go tool #40932
Labels
FrozenDueToAge
help wanted
NeedsFix
The path to resolution is known, but the work has not been done.
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 experimented with
go env -w
and set GOTMPDIR to an invalid path. No check prevented me from doing it. After the change the Go tool would not run any more, preventing me from resetting or correcting the path.This completely prevents use of the
go
tool until the user locates theenv
file inAppData\go
and removes or edits it.What did you expect to see?
I expected at least the
go env
(-w
) commands to be available to correct the mistake.What did you see instead?
The
go
tool terminates with the messagego: creating work dir: CreateFile x: The system cannot find the file specified.
.The text was updated successfully, but these errors were encountered: