8000 Add support for choosing what binary to run with mage by natefinch · Pull Request #146 · magefile/mage · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add support for choosing what binary to run with mage #146

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

Merged
merged 6 commits into from
Sep 7, 2018
Merged

Conversation

natefinch
Copy link
Member
@natefinch natefinch commented Sep 2, 2018

It's easy these days to install multiple versions of go side by side, using go get golang.org/dl/go1.11 etc. So, let's support those in Mage! With this PR you can choose what go binary to use by setting MAGEFILE_GOCMD to the name/path of the binary.

This also allows you use the same variable to choose what version of go to compile mage itself with if you use the magefile to compile.

Finally, we now embed the version of go used to compile mage itself in the mage -version output, which can be useful to understand what mage is doing.

@natefinch natefinch merged commit bd5486e into master Sep 7, 2018
@natefinch natefinch deleted the gocmd branch September 7, 2018 01:23
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.

1 participant
0