1//+build mage
2
3package main
4
5// important things to note:
6// * these two packages have the same package name, so they'll conflict
7// when imported.
8// * one is imported with underscore and one is imported normally.
9//
10// they should still work normally as mageimports
11
12import (
13	"fmt"
14
15	// mage:import
16	_ "github.com/magefile/mage/mage/testdata/mageimport/subdir1"
17	// mage:import zz
18	"github.com/magefile/mage/mage/testdata/mageimport/subdir2"
19)
20
21var Aliases = map[string]interface{}{
22	"nsd2": mage.NS.Deploy2,
23}
24
25var Default = mage.NS.Deploy2
26
27func Root() {
28	fmt.Println("root")
29}
30