1
0
mirror of https://github.com/magefile/mage.git synced 2026-10-24 06:19:18 +03:00
Files
mage/parse/testdata/importself/magefile.go
Nate Finch 0c7e3dee3e filter mageimport files (#281)
When calling mage import, we weren't prefiltering the list of go
files, so we'd get files with build tags and test files and such.
What we want is just the normal go files for building the library.
Using go list returns us that, so use that.
2020-01-13 23:53:11 -05:00

14 lines
158 B
Go

//+build mage
package main
import (
"fmt"
// mage:import
_ "github.com/magefile/mage/parse/testdata/importself"
)
func Build(){
fmt.Println("built")
}