Can't supply an url alias for the 3 cargo sources (librsvg, slirp-helper, gnome-tour)
Some of us are currently investigating creating download-mirrors for all the software sources used in gnome-build-meta, in the interests of creating backups in case any source project goes down or disappears. To use mirrors in BuildStream, each download source needs to explicitly specify a URL and use an alias in that URL. We've started a branch to test this out.
In a cargo src, the url
field is optional but the default value is: https://static.crates.io/crates
. We tried specifying this value explicitly in the .bst files, using a file alias:
sources:
...
...
- kind: cargo
url: crates:crates
We ran into this issue when running bst track
: https://gitlab.com/BuildStream/bst-external/-/issues/53.
Gnome Build Meta doesn't store source refs in the bst files. They're all recorded in a project.refs
file instead, which is the reason this bug came up. It may be possible to work around it by adding a dummy refs section, as discussed in the bst-external
issue described above.