1
0
mirror of https://github.com/magefile/mage.git synced 2026-10-24 06:19:18 +03:00
Files
mage/parse/testdata/subcommand_1.9.go
Horacio Duran 2385abb49a Correct test input code to support older go versions (#490)
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.
2023-11-18 18:05:41 +01:00

9 lines
211 B
Go

//go:build mage && go1.9
// +build mage,go1.9
package main
// this causes a panic defined in issue #126
// Note this is only valid in go 1.9+, thus the additional build tag above.
type Foo = map[string]string