Skip to content

Commit

Permalink
Use Go 1.11 modules with Mage
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Aug 25, 2018
1 parent 76baf5e commit 6bd7b53
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ func init() {
if exe := os.Getenv("GOEXE"); exe != "" {
goexe = exe
}

// We want to use Go 1.11 modules even if the source lives inside GOPATH.
// The default is "auto".
os.Setenv("GO111MODULE", "on")
}

func getDep() error {
Expand Down

0 comments on commit 6bd7b53

Please sign in to comment.