Skip to content

Commit

Permalink
cfg: set GO111MODULE GolangSources Env var in application template co…
Browse files Browse the repository at this point in the history
…nfig

Setting it for applications that use go modules can prevent some issues, add it
to the exemplary app config.
  • Loading branch information
fho committed Nov 15, 2018
1 parent 0be4ed9 commit 9ec1bc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cfg/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func ExampleApp(name string) *App {
},
GolangSources: GolangSources{
Paths: []string{"."},
Environment: []string{"GOFLAGS=-mod=vendor"},
Environment: []string{"GOFLAGS=-mod=vendor", "GO111MODULE=on"},
},
},
Output: BuildOutput{
Expand Down

0 comments on commit 9ec1bc8

Please sign in to comment.