From 9ec1bc84394ce08d0d3040e5101f97345266dec6 Mon Sep 17 00:00:00 2001 From: Fabian Holler Date: Thu, 15 Nov 2018 18:30:53 +0100 Subject: [PATCH] cfg: set GO111MODULE GolangSources Env var in application template config Setting it for applications that use go modules can prevent some issues, add it to the exemplary app config. --- cfg/app.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cfg/app.go b/cfg/app.go index fd1b82e0f..dc7f0c4fa 100644 --- a/cfg/app.go +++ b/cfg/app.go @@ -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{