blob: 6401348002aad7fbc459f833e0ed8998504552fa [file] [log] [blame] [view]
Leopold7fbf1042023-01-06 19:57:37 +01001# sandboxroot
2
3We use [bazeldnf](https://github.com/rmohr/bazeldnf) in order to reproducibly generate a sysroot
4to use for Bazel's sandbox from Fedora packages.
5
6bazeldnf is self-contained and requires only a Go toolchain, requiring minimal host dependencies.
7This allows us to bootstrap without having to ship a prebuilt sysroot.
8
9## How to update repository and build rules
10
11Add any new packages to [regenerate.sh](./regenerate.sh) and regenerate definitions:
12
13 third_party/sandboxroot/regenerate.sh
14
15This will fetch the latest version of all required packages from Fedora's repos
16and update repositories.bzl and BUILD.bazel.
17
18The next time a bazel command is run, the wrapper will pick up the change
19and rebuild the sandbox root.