cargo needs sudo
This is probably a known issue, but it's bothering me for a while now and I am opening this issue to see if it can be sorted out somehow...
The CI for librsvg needs to use sudo
in order to run cargo
. Or actually, cargo can be run for simple things like cargo --version
, however more complex things like cargo check
fail unless they are run with superuser privileges.
This affects the opensuse:tumbleweed
image as well as fedora:latest
, but not debian:testing
.
To illustrate the problem I've created a branch that removes the use of sudo from the CI configuration:
Here the CI successfully runs rustc -vV
, but then cargo check
fails with
error: could not execute process `rustc -vV` (never executed)
Looks like missing container privileges to me, but I am not very familiar with this subject. Somehow cargo does not seem to be allowed to spawn subprocesses?