From a65f3dcf7f3e65aaf0c093830f2517f4fb79a5cb Mon Sep 17 00:00:00 2001 From: Lorenz Bauer Date: Mon, 29 Jan 2024 17:48:00 +0000 Subject: [PATCH] cmd/bpf2go: don't require internet connection in tests Disable the checksum db and the module proxy. They aren't needed for tests and disabling means we don't need internet access. Signed-off-by: Lorenz Bauer --- cmd/bpf2go/main_test.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cmd/bpf2go/main_test.go b/cmd/bpf2go/main_test.go index 3a62cd3f5..da0eca972 100644 --- a/cmd/bpf2go/main_test.go +++ b/cmd/bpf2go/main_test.go @@ -90,6 +90,8 @@ func main() { goBuild.Env = append(os.Environ(), "GOOS=linux", "GOARCH="+arch, + "GOPROXY=off", + "GOSUMDB=off", ) out, err := goBuild.CombinedOutput() if err != nil {