@@ -71,7 +71,7 @@ impl<'a, 'b, 'c> ContainerDataVolume<'a, 'b, 'c> {
7171 let temppath = tempdir. path ( ) ;
7272 let had_symlinks = copy_dir ( src, temppath, copy_symlinks, 0 , |e, _| is_cachedir ( e) ) ?;
7373 warn_symlinks ( had_symlinks, msg_info) ?;
74- self . copy_files ( temppath, dst, msg_info)
74+ self . copy_files ( & temppath. join ( "." ) , dst, msg_info)
7575 }
7676
7777 // copy files for a docker volume, for remote host support
@@ -567,7 +567,7 @@ impl QualifiedToolchain {
567567 . file_name ( )
568568 . expect ( "should be able to get toolchain name" )
569569 . to_utf8 ( ) ?;
570- let toolchain_hash = path_hash ( self . get_sysroot ( ) , 5 ) ?;
570+ let toolchain_hash = path_hash ( self . get_sysroot ( ) , PATH_HASH_SHORT ) ?;
571571 Ok ( format ! (
572572 "{VOLUME_PREFIX}{toolchain_name}-{toolchain_hash}-{commit_hash}"
573573 ) )
@@ -577,15 +577,15 @@ impl QualifiedToolchain {
577577 // be generated outside a rust package and run multiple times.
578578 pub fn unique_container_identifier ( & self , triple : & TargetTriple ) -> Result < String > {
579579 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 ) ?;
581581 let system_time = now_as_millis ( ) ?;
582582 Ok ( format ! ( "{toolchain_id}-{triple}-{cwd_path}-{system_time}" ) )
583583 }
584584
585585 // unique identifier for a given mounted volume
586586 pub fn unique_mount_identifier ( & self , path : & Path ) -> Result < String > {
587587 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 ) ?;
589589 Ok ( format ! ( "{toolchain_id}-{mount_hash}" ) )
590590 }
591591}
0 commit comments