tree: f574103b91e0df1425f0ee1644266690d85a8767 [path history] [tgz]
  1. mirror/
  2. .gitignore
  3. BUILD.bazel
  4. README.md
  5. regenerate.sh
  6. repo.yaml
  7. repositories.bzl
  8. tools.go
third_party/sandboxroot/README.md

sandboxroot

We use bazeldnf in order to reproducibly generate a sysroot to use for Bazel's sandbox from Fedora packages.

bazeldnf is self-contained and requires only a Go toolchain, requiring minimal host dependencies. This allows us to bootstrap without having to ship a prebuilt sysroot.

How to update repository and build rules

Add any new packages to regenerate.sh and regenerate definitions:

third_party/sandboxroot/regenerate.sh

This will fetch the latest version of all required packages from Fedora's repos and update repositories.bzl and BUILD.bazel.

The next time a bazel command is run, the wrapper will pick up the change and rebuild the sandbox root.