Skip to content

Commit a65f3dc

Browse files
committed
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 <[email protected]>
1 parent ad37d7f commit a65f3dc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmd/bpf2go/main_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ func main() {
9090
goBuild.Env = append(os.Environ(),
9191
"GOOS=linux",
9292
"GOARCH="+arch,
93+
"GOPROXY=off",
94+
"GOSUMDB=off",
9395
)
9496
out, err := goBuild.CombinedOutput()
9597
if err != nil {

0 commit comments

Comments
 (0)