mirror of
https://github.com/magefile/mage.git
synced 2026-10-24 06:19:18 +03:00
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.
14 lines
158 B
Go
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")
|
|
} |