From 3421d0773ff56dfb470d3f114912a197d221cbb1 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 29 Sep 2022 00:34:33 +0200 Subject: [PATCH] build: ensure GOMODCACHE is not set in dependency download for deb --- build/ci.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/ci.go b/build/ci.go index 5af7ed5992..a9b22795be 100644 --- a/build/ci.go +++ b/build/ci.go @@ -680,10 +680,12 @@ func doDebianSource(cmdline []string) { // Download all the dependencies needed to build the sources and run the ci script srcdepfetch := tc.Go("mod", "download") srcdepfetch.Env = append(srcdepfetch.Env, "GOPATH="+filepath.Join(*workdir, "modgopath")) + srcdepfetch.Env = append(srcdepfetch.Env, "GOMODCACHE=") build.MustRun(srcdepfetch) cidepfetch := tc.Go("run", "./build/ci.go") cidepfetch.Env = append(cidepfetch.Env, "GOPATH="+filepath.Join(*workdir, "modgopath")) + cidepfetch.Env = append(srcdepfetch.Env, "GOMODCACHE=") cidepfetch.Run() // Command fails, don't care, we only need the deps to start it // Create Debian packages and upload them.