blob: 002d9ae75e7cdaa8aa9c3bbb423fcc0bc25bd3f3 [file] [log] [blame] [view]
Serge Bazanski77b87a62023-04-03 15:24:27 +02001sandboxroot mirror
2===
3
4Fedora mirrors tend to drop RPMs very quickly. As we don't want to be constantly
5chasing every single tiny update, we have decided to set up our own mirror on GCS.
6
7The mirror only contains RPMs that the sandboxroot actually uses, and is managed
8by running the `mirror` tool from this directory.
9
10Using the mirror
11---
12
13The mirror is enabled by default whenever you use Bazel (see repositories.bzl in this directory).
14
15Updating the mirror
16---
17
18Any 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:
19
20```
21$ bazel run :mirror sync
22```
23
24Checking the mirror
25---
26
27If you want to just check whether everything's properly synced, you can run:
28
29```
30$ bazel run :mirror check
31```
32
33To do a full scan (downloading and checking SHA256 sums) do:
34
35```
36$ bazel run :mirror check --deep
37```