Want cargo-vendor possibly only in the fast Fedora image
Created by: Federico Mena Quintero
I'm adding a stage to librsvg's CI that runs make distcheck
to try to build a tarball and test it. This requires cargo vendor
. For now I'm running cargo install cargo-vendor
in that particular job, but the command should really be in the librsvg-oci-images.
What's the right place to do this? For example, in the openSUSE script that runs zypper
, I could just list cargo-vendor
as a package to install. However, Fedora doesn't have such a package.
The options I see are these:
- Run
cargo install vendor
just in my librsvg CI's job; slow but it works. - Run
cargo install vendor
while creating the "fast" Fedora image here - I would use that image for runningmake distcheck
, just like we use it for the stage_1 tests. - Use an openSUSE image with the cargo-vendor RPM just for the
make distcheck
job. This would make it hard to use the artifacts from runningautogen.sh
from thetest
stage, since those are generated from Fedora.
Imported comments:
By Federico Mena Quintero on 2018-05-04T20:39:12.719Z
changed title from Want cargo-vendor in the images to Want cargo-vendor possibly only in the fast Fedora image
By Jordan Petridis on 2018-05-07T19:28:51.957Z
if cargo vendor
can be compiled with rust stable
we can bless fedora, or any image really, and bundle it in the image directly.
(Sorry, I did not get an email for this repo for some reason and only saw the issue now by accident)
By Federico Mena Quintero on 2018-05-07T19:53:04.583Z
No problem; I installed it by hand in librsvg's .gitlab-ci.yml.
Needed these dependencies:
- dnf install -y openssl-devel libssh2-devel libgit2-devel cmake xz
- cargo install cargo-vendor
By Jordan Petridis on 2018-05-07T20:15:24.719Z
Thanks, will do it before migrating the repo to gitlab.g.o
By Federico Mena Quintero on 2018-05-09T18:04:22.651Z
We have registry now!?!?
By Jordan Petridis on 2018-05-09T18:51:29.581Z
Yes, it was enabled a week ago but haven't found the time to migrate it yet.
It will be done probably before the weekend though.