mage icon indicating copy to clipboard operation
mage copied to clipboard

Enhancement: use 1.18 build & source control info when available

Open natefinch opened this issue 3 years ago • 0 comments

Describe the feature The only reason we have a build script for mage is to embed version information in the binary. As of 1.18, go will do that automatically. We should add code so that if you build with 1.18, we use that built-in info instead of the ldflags code that we use right now. That would allow anyone using 1.18 and above to simply go install github.com/magefile/mage@latest and not need to use the build script.

What problem does this feature address? It makes the install simpler and removes the need for the install script for anyone with a high enough version of go.

natefinch avatar Mar 18 '22 17:03 natefinch