Skip to content

Commit d30a2cf

Browse files
authored
fix tests when running in module mode (#257)
* fix tests when running in module mode * add 1.12.x explicitly to the travis build
1 parent 9a6d7fe commit d30a2cf

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ branches:
99
# library, I'm not going to worry about older versions for now.
1010
go:
1111
- tip
12+
- 1.12.x
1213
- 1.11.x
1314
- 1.10.x
1415
- 1.9.x

go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
module github.com/magefile/mage
2+
3+
go 1.12

mage/testdata/mixed_lib_files/magefile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
package main
44

5-
import "./subdir"
5+
import "github.com/magefile/mage/mage/testdata/mixed_lib_files/subdir"
66

77
func Build() {
88
subdir.Build()

0 commit comments

Comments
 (0)