File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -347,7 +347,12 @@ pub fn get_potential_dotfiles_paths(profile: Option<String>) -> PotentialDotfile
347347 config : dirs:: config_dir ( ) . unwrap ( ) . join ( dotfiles_dir) ,
348348 env : std:: env:: var ( "TUCKR_HOME" ) . map ( PathBuf :: from) . ok ( ) ,
349349 test : std:: env:: temp_dir ( )
350- . join ( format ! ( "tuckr-{}" , std:: thread:: current( ) . name( ) . unwrap( ) ) )
350+ . join ( format ! (
351+ "tuckr-{}" ,
352+ // this will return a namespace but `::` is invalid on paths in windows
353+ // so we need to change it to prevent panics when interacting with the file system there
354+ std:: thread:: current( ) . name( ) . unwrap( ) . replace( "::" , "_" )
355+ ) )
351356 . join ( "dotfiles" ) ,
352357 }
353358}
Original file line number Diff line number Diff line change @@ -776,7 +776,7 @@ mod tests {
776776
777777 let target_dir = dirs:: home_dir ( ) . unwrap ( ) . join ( format ! (
778778 "tuckr_test-{}" ,
779- std:: thread:: current( ) . name( ) . unwrap( )
779+ std:: thread:: current( ) . name( ) . unwrap( ) . replace ( "::" , "_" )
780780 ) ) ;
781781 fs:: create_dir_all ( & target_dir) . unwrap ( ) ;
782782
Original file line number Diff line number Diff line change @@ -552,6 +552,7 @@ fn get_nonexistent_groups_with_no_related_groups(
552552
553553 Some ( nonexistent_groups)
554554}
555+
555556/// Adds symlinks
556557#[ allow( clippy:: too_many_arguments) ]
557558pub fn add_cmd (
You can’t perform that action at this time.
0 commit comments