magefile / mage

a Make/rake-like dev tool using Go
https://magefile.org
Apache License 2.0
4.12k stars 251 forks source link

Correct test input code to support older go versions #490

Closed perrito666 closed 10 months ago

perrito666 commented 10 months ago

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.