tree: 02026d30ef04799279cee80eac31309861b27df1 [path history] [tgz]
  1. bazeldnf.go
  2. BUILD.bazel
  3. external.go
  4. main.go
  5. README.md
third_party/sandboxroot/mirror/README.md

sandboxroot mirror

Fedora mirrors tend to drop RPMs very quickly. As we don't want to be constantly chasing every single tiny update, we have decided to set up our own mirror on GCS.

The mirror only contains RPMs that the sandboxroot actually uses, and is managed by running the mirror tool from this directory.

Using the mirror

The mirror is enabled by default whenever you use Bazel (see repositories.bzl in this directory).

Updating the mirror

Any time you run third_party/sandboxroot/regenerate.sh, the last step calls mirror sync. If that fails for some reason (eg. you were not logged into GCS), you can run it manually:

$ bazel run :mirror sync

Checking the mirror

If you want to just check whether everything's properly synced, you can run:

$ bazel run :mirror check

To do a full scan (downloading and checking SHA256 sums) do:

$ bazel run :mirror check --deep