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
Copy file name to clipboardExpand all lines: src/docker/remote.rs
+36-29Lines changed: 36 additions & 29 deletions
Original file line number
Diff line number
Diff line change
@@ -853,7 +853,8 @@ pub(crate) fn run(
853
853
) -> Result<ExitStatus>{
854
854
let engine = &options.engine;
855
855
let target = &options.target;
856
-
let dirs = &paths.directories;
856
+
let toolchain_dirs = paths.directories.toolchain_directories();
857
+
let package_dirs = paths.directories.package_directories();
857
858
858
859
let mount_prefix = MOUNT_PREFIX;
859
860
@@ -883,18 +884,18 @@ pub(crate) fn run(
883
884
// this can happen if we didn't gracefully exit before
884
885
// note that since we use `docker run --rm`, it's very
885
886
// unlikely the container state existed before.
886
-
let toolchain_id = dirs.unique_toolchain_identifier()?;
887
-
let container = dirs.unique_container_identifier(target.target())?;
887
+
let toolchain_id = toolchain_dirs.unique_toolchain_identifier()?;
888
+
let container = toolchain_dirs.unique_container_identifier(target.target())?;
888
889
let volume = {
889
-
let existing = existing_volumes(engine,dirs.toolchain(), msg_info)?;
890
+
let existing = existing_volumes(engine,toolchain_dirs.toolchain(), msg_info)?;
890
891
if existing.iter().any(|v| v == &toolchain_id){
891
892
VolumeId::Keep(toolchain_id)
892
893
}else{
893
-
let partial = format!("{VOLUME_PREFIX}{}",dirs.toolchain());
894
+
let partial = format!("{VOLUME_PREFIX}{}",toolchain_dirs.toolchain());
894
895
if existing.iter().any(|v| v.starts_with(&partial)){
895
896
msg_info.warn(format_args!(
896
897
"a persistent volume does not exists for `{0}`, but there is a volume for a different version.\n > Create a new volume with `cross-util volumes create --toolchain {0}`",
897
-
dirs.toolchain()
898
+
toolchain_dirs.toolchain()
898
899
))?;
899
900
}
900
901
VolumeId::Discard
@@ -947,7 +948,7 @@ pub(crate) fn run(
947
948
948
949
// When running inside NixOS or using Nix packaging we need to add the Nix
949
950
// Store to the running container so it can load the needed binaries.
0 commit comments