You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have done cargo fetch and cargo generate-lockfile. Now i'm trying to run cargo build in a container, where CARGO_HOME is mounted read-only, assuming nothing in there needs to be touched. I get this error though:
101 ec2-user@ip-10-254-206-7:~/dev/cargobomb$ docker run -it -v `pwd`/dockertest:/test -v `pwd`/work/cargo-home:/cargo-home:ro -v `pwd`/work/rustup-home:/rustup-home:ro -v `pwd`/work/target-dirs/default:/target cargobomb cargo build --verbose
error: unable to get packages from source
Caused by:
failed to open: /cargo-home/registry/cache/github.com-1ecc6299db9ec823/fake-simd-0.1.0.crate
Caused by:
Read-only file system (os error 30)
The text was updated successfully, but these errors were encountered:
Open crate files readonly first
This allows Cargo to work with read-only `CARGO_HOME` directories where the
cache was prepared ahead of time.
Closes#3256
I have done
cargo fetch
andcargo generate-lockfile
. Now i'm trying to runcargo build
in a container, whereCARGO_HOME
is mounted read-only, assuming nothing in there needs to be touched. I get this error though:The text was updated successfully, but these errors were encountered: