Skip to content

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.

2 participants