You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test: build mockstdio_server with isolated cache to prevent flaky CI (#241)
CI occasionally failed with the linker error:
/link: cannot open file DO NOT USE - main build pseudo-cache built
This is most likely because several parallel `go build` invocations
shared the same `$GOCACHE`, letting one job evict the object file
another job had promised the linker. The placeholder path then leaked
through and the build aborted.
This gives each compile its own cache by setting `GOCACHE=$(mktemp -d)`
for the helper’s `go build` call.
After these changes `go test ./... -race` passed 100/100 consecutive
runs locally.
0 commit comments