v1.8.0 - Papercuts and Bug Fixes
Details
Several nice to have fixes that have been waiting for some TLC. The important ones:
- Binaries compiled with
-compilenow have support for all the applicable flags from Mage itself, so for example you can do<your binary> -lto list the targets. see https://magefile.org/compiling/ for full details. - Specifying GOOS and GOARCH now won't confuse mage. Previously if you attempted to use mage to run
go buildand specified a different GOOS or GOARCH in your environment variables, those environment variables would change the binary that mage builds out of your magefile, and generally made it not executable on your system. Now that won't happen. To run-compileand create a binary for a different platform, use the-goosand-goarchflags.
Changelog
fix one line imports as mage:imports (#204)
refactor alias/default parsing to support imported packages and namespaces (#203)
GOOS and GOARCH fixes (#202)
Compiled flags (#201)