cmd/go: repeated, unhelpful errors when module cache can't be created #45113
Comments
Change https://golang.org/cl/304571 mentions this issue: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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?
Set environment variables such that the module cache directory can't be created as a directory. In this example below, I've explicitly set
GOMODCACHE
to a path I don't have access to.This came up in this golang-nuts thread. In that example, neither
GOPATH
norGOMODCACHE
was set, soGOMODCACHE
defaulted to$HOME/go/pkg/mod
, but$HOME/go
is not a directory.What did you expect to see?
An error message that explains what the problem is and how to fix it, printed once.
What did you see instead?
An unhelpful message, printed multiple times.
The text was updated successfully, but these errors were encountered: