Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bazel: disable sandboxing and avoid stamping
- Sandboxing on MacOS have measurable overhead. See bazelbuild/bazel#8230; it comes from symlinks being much slower to create. This commit disables sandboxing on local builds (still present in CI) to hopefully speed up builds. - If this proves to be buggy for whatever reason, we could opt out of sandboxing for go package compiles specifically using --strategy=GoCompilePkg=local. - In the future if we want local sandboxing, we could explore sandboxfs: https://bazel.build/docs/sandboxing - When used with a remote build cache, these stamps (despite being marked as volatile), induce an unnecessary golink step when switching back and forth between branches. See bazelbuild/bazel#10075. Opting out here shaves a few precious seconds if the previously built binary is already available. Release note: None
- Loading branch information