-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
make.bash: GO111MODULE=on breaks build #26996
Comments
Here is another example of how GO111MODULE can unintentionally break building tip from source, travis-ci/gimme#158 |
I was confused when trying to run all.bash/make.bash and it failed (error attached below). It turns out it was because there was a go.mod in an ancestor directory. I mention this here because @bcmills assures me that the fix for my issue is the same as the fix for this one.
|
I often used 'go install cmd' to rebuild go commands with tiny local changes, and that doesn't work with GO111MODULE=on - I guess for the same reason. |
This should be fixed as of CL 164621. |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?tip
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?darwin/amd64
What did you do?
What did you expect to see?
Successful completion of
./make.bash
What did you see instead?
This may seem like a contrived example but it is easily conceivable someone may add
export GO111MODULE=on
to their~/.bashrc
(or similar) to "opt in" to modules everywhere, then be unaware that this setting prevents building Go from source.The text was updated successfully, but these errors were encountered: