# Bzlmod is the only dependency-resolution path (pure Bazel, no legacy WORKSPACE). common --enable_bzlmod common --noenable_workspace # Go builds are hermetic via rules_go's downloaded SDK; never fall back to host Go. build --incompatible_enable_proto_toolchain_resolution # gnark-crypto's amd64/arm64 assembly uses relative cross-package #include # directives that don't resolve in Bazel's sandbox. The `purego` build tag # selects its pure-Go field arithmetic (gated behind //go:build !purego) — # bit-identical, just slower. `go build`/the Makefile still use the asm fast # path; only Bazel uses purego. build --@io_bazel_rules_go//go/config:tags=purego # Quieter, more useful output. build --show_timestamps test --test_output=errors test --test_summary=terse # Keep building independent targets after a failure so we see the full picture. build --keep_going test --keep_going # Local cache so repeated builds are fast. build --disk_cache=~/.cache/bazel-disk/bitwrap-io # Shared remote cache (opt-in: `bazel test --config=remote //...`). Auth is read # from ~/.netrc (machine bazel.stackdump.com) — NEVER commit credentials. Falls # back to a local build if the cache is unreachable. Read-only by default so a # non-sandboxed local-fallback result can never poison the shared cache; only # trusted CI pushes opt into uploads (CI appends --remote_upload_local_results). # To populate the cache from a trusted machine, add that flag to a personal # user.bazelrc (alongside `build --config=remote` to make it the default there). build:remote --remote_cache=https://bazel.stackdump.com build:remote --remote_local_fallback build:remote --noremote_upload_local_results