Skip to content

Commit

Permalink
chore: fix spurious generate failures
Browse files Browse the repository at this point in the history
```
fork/exec /tmp/go-build720301329/b001/exe/gen: no such file or directory
pkg/flannel/flannel.go:8: running "go": exit status 1
```

I believe the root cause might be cache miss, that might cause
`generate` target to be called from `WITH_RACE=true` target, enabling
`CGO_ENABLED=1`, so it is random to reproduce (depends on buildkit cache
behavior).

Signed-off-by: Andrey Smirnov <[email protected]>
  • Loading branch information
smira committed Feb 13, 2025
1 parent 32a3479 commit f25e243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/flannel/flannel.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
// Package flannel provides flannel default manifest.
package flannel

//go:generate go run ./gen.go
//go:generate env CGO_ENABLED=0 go run ./gen.go

0 comments on commit f25e243

Please sign in to comment.