Skip to content

Commit

Permalink
cmd/bpf2go: don't require internet connection in tests
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
lmb committed Mar 26, 2024
1 parent ad37d7f commit a65f3dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/bpf2go/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a65f3dc

Please sign in to comment.