From d30a2cfe416c3a1ca20abd90359569e0a618256a Mon Sep 17 00:00:00 2001 From: Nate Finch Date: Wed, 17 Jul 2019 23:47:39 -0400 Subject: [PATCH] fix tests when running in module mode (#257) * fix tests when running in module mode * add 1.12.x explicitly to the travis build --- .travis.yml | 1 + go.mod | 2 ++ mage/testdata/mixed_lib_files/magefile.go | 2 +- 3 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index f7e0703e..3522bb59 100644 --- a/.travis.yml +++ b/.travis.yml @@ -9,6 +9,7 @@ branches: # library, I'm not going to worry about older versions for now. go: - tip + - 1.12.x - 1.11.x - 1.10.x - 1.9.x diff --git a/go.mod b/go.mod index d702af13..8261fa13 100644 --- a/go.mod +++ b/go.mod @@ -1 +1,3 @@ module github.com/magefile/mage + +go 1.12 diff --git a/mage/testdata/mixed_lib_files/magefile.go b/mage/testdata/mixed_lib_files/magefile.go index e9604289..3c30feba 100644 --- a/mage/testdata/mixed_lib_files/magefile.go +++ b/mage/testdata/mixed_lib_files/magefile.go @@ -2,7 +2,7 @@ package main -import "./subdir" +import "github.com/magefile/mage/mage/testdata/mixed_lib_files/subdir" func Build() { subdir.Build()