@@ -71,7 +71,7 @@ impl<'a, 'b, 'c> ContainerDataVolume<'a, 'b, 'c> {
71
71
let temppath = tempdir. path ( ) ;
72
72
let had_symlinks = copy_dir ( src, temppath, copy_symlinks, 0 , |e, _| is_cachedir ( e) ) ?;
73
73
warn_symlinks ( had_symlinks, msg_info) ?;
74
- self . copy_files ( temppath, dst, msg_info)
74
+ self . copy_files ( & temppath. join ( "." ) , dst, msg_info)
75
75
}
76
76
77
77
// copy files for a docker volume, for remote host support
@@ -567,7 +567,7 @@ impl QualifiedToolchain {
567
567
. file_name ( )
568
568
. expect ( "should be able to get toolchain name" )
569
569
. to_utf8 ( ) ?;
570
- let toolchain_hash = path_hash ( self . get_sysroot ( ) , 5 ) ?;
570
+ let toolchain_hash = path_hash ( self . get_sysroot ( ) , PATH_HASH_SHORT ) ?;
571
571
Ok ( format ! (
572
572
"{VOLUME_PREFIX}{toolchain_name}-{toolchain_hash}-{commit_hash}"
573
573
) )
@@ -577,15 +577,15 @@ impl QualifiedToolchain {
577
577
// be generated outside a rust package and run multiple times.
578
578
pub fn unique_container_identifier ( & self , triple : & TargetTriple ) -> Result < String > {
579
579
let toolchain_id = self . unique_toolchain_identifier ( ) ?;
580
- let cwd_path = path_hash ( & env:: current_dir ( ) ?, 5 ) ?;
580
+ let cwd_path = path_hash ( & env:: current_dir ( ) ?, PATH_HASH_SHORT ) ?;
581
581
let system_time = now_as_millis ( ) ?;
582
582
Ok ( format ! ( "{toolchain_id}-{triple}-{cwd_path}-{system_time}" ) )
583
583
}
584
584
585
585
// unique identifier for a given mounted volume
586
586
pub fn unique_mount_identifier ( & self , path : & Path ) -> Result < String > {
587
587
let toolchain_id = self . unique_toolchain_identifier ( ) ?;
588
- let mount_hash = path_hash ( path, 10 ) ?;
588
+ let mount_hash = path_hash ( path, PATH_HASH_UNIQUE ) ?;
589
589
Ok ( format ! ( "{toolchain_id}-{mount_hash}" ) )
590
590
}
591
591
}
0 commit comments