Skip to content
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

Unset GO111MODULE within Gimme itself #159

Merged
merged 1 commit into from
Aug 14, 2018
Merged

Conversation

philpennock
Copy link
Contributor

Presumably when GO111MODULE is set in environ when calling gimme, it's part of generic setup to be used by the Go toolchain when building the code being CI tested and the intent is not to try to tell Go, when building from source, that it should be requiring the new Go 1.11 module semantics.

Forcibly unset GO111MODULE in Gimme itself, but do not do anything to add this to the emitted environment variables.

Without this, gimme master currently fails; with this change, it succeeds.

Fixes #158

Presumably when `GO111MODULE` is set in environ when calling `gimme`,
it's part of generic setup to be used by the Go toolchain when building
the code being CI tested and the intent is not to try to tell Go, when
building from source, that it should be requiring the new Go 1.11 module
semantics.

Forcibly unset `GO111MODULE` in Gimme itself, but do not do anything to
add this to the emitted environment variables.

Without this, `gimme master` currently fails; with this change, it
succeeds.
@philpennock
Copy link
Contributor Author

(Side-nudge: gimme master is more stable and faster in general if #151 is merged.)

philpennock added a commit that referenced this pull request Aug 14, 2018
We already have logic to handle `GIMME_DEBUG` looking like a number and
capturing more output here; just use one number higher to ask
`make.bash` to be verbose.

Slightly repetitive, but cleaner and easier to understand than
conditional arrays or stuff which would affect shellcheck if we relied
upon empty unquoted args being dropped.

With this and without the #159 unset of `GO111MODULE`, invoking as
`GIMME_DEBUG=3 GO111MODULE=on gimme master` reveals all the `use of
internal package` complaints which show that building Go itself is
incompatible with having `GO111MODULE` set in environ.
Copy link
Contributor

@AlekSi AlekSi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@philpennock philpennock merged commit 8925443 into master Aug 14, 2018
@philpennock philpennock deleted the go111module-compatible branch August 14, 2018 17:30
philpennock added a commit that referenced this pull request Aug 14, 2018
We already have logic to handle `GIMME_DEBUG` looking like a number and
capturing more output from `make.bash` here; adjust condition to make it
clearer which value triggers is, and also tell `make.bash` to be more
verbose and get more details in the captured log.

Having `make.bash -v`, before the the #159 unset of `GO111MODULE`, this
facility reveals all the `use of internal package` complaints which show
that building Go itself is incompatible with having `GO111MODULE` set in
environ.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants