github magefile/mage v1.3.0
v1.3.0 - Build with specific versions of Go

latest releases: v1.15.0, v1.14.0, v1.13.0...
5 years ago

This release adds a -gocmd to the list of flags you can use with mage. This flag allows you to choose what command mage runs when it builds the binary of your magefile. This can be useful if you have multiple versions of go installed (e.g. with go get golang.org/dl/go1.xx), and different projects need to be built with different versions of go.

Now you can run mage -gocmd go1.11 build . or mage -gocmd go1.8.7 install etc.

The default is to use whatever "go" command is first in your path.

There's also a MAGEFILE_GOCMD environment variable you can set if you want to always default to something other than "go".

Changelog

bd5486e Add support for choosing what binary to run with mage (#146)
e592274 new demo video

Don't miss a new mage release

NewReleases is sending notifications on new releases.