diff --git a/builder/encore-build.go b/builder/encore-build.go index 4b2cc6986c..121221350e 100644 --- a/builder/encore-build.go +++ b/builder/encore-build.go @@ -40,7 +40,9 @@ func (b *Builder) Build() error { cmd.Env = append(os.Environ(), "GOROOT_FINAL=/encore", "GOARCH="+b.GOARCH, - "GOOS="+b.GOOS) + "GOOS="+b.GOOS, + "GOEXPERIMENT=cacheprog", + ) return cmd.Run() }