mirror of
https://github.com/magefile/mage.git
synced 2025-04-19 06:22:14 +03:00
Samples used for testing need to have build tags for new and old style: ``` //go:build tag // +build tag ``` The particular problem here seems to be that 1.16 was actually importing the package referred in the `TestGoModules` test (`import "golang.org/x/text/unicode/norm"`) which, in the CI system's version lacks an old style go tag comment. Hence go complaining of a `//go:build` without a `// +build`. I made all files bi-tagged for consistency.
21 lines
380 B
Go
21 lines
380 B
Go
//go:build ignore
|
|
// +build ignore
|
|
|
|
package main
|
|
|
|
import (
|
|
"os"
|
|
|
|
"github.com/magefile/mage/mage"
|
|
)
|
|
|
|
// This is a bootstrap builder, to build mage when you don't already *have* mage.
|
|
// Run it like
|
|
// go run bootstrap.go
|
|
// and it will install mage with all the right flags created for you.
|
|
|
|
func main() {
|
|
os.Args = []string{os.Args[0], "-v", "install"}
|
|
os.Exit(mage.Main())
|
|
}
|