-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* This adds a test to bug 508 It fails against master before merging the patch on #509 (review)
- Loading branch information
1 parent
0800736
commit 32e0107
Showing
3 changed files
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package deps | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/magefile/mage/mg" | ||
) | ||
|
||
// All code in this package belongs to @na4ma4 in GitHub https://github.com/na4ma4/magefile-test-import | ||
// reproduced here for ease of testing regression on bug 508 | ||
|
||
type Docker mg.Namespace | ||
|
||
func (Docker) Test() { | ||
fmt.Println("docker") | ||
} | ||
|
||
func Test() { | ||
fmt.Println("test") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//go:build mage | ||
// +build mage | ||
|
||
package main | ||
|
||
import ( | ||
//mage:import | ||
"github.com/magefile/mage/mage/testdata/bug508/deps" | ||
) | ||
|
||
var Default = deps.Test |