File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
pdl-live-react/src-tauri/src/interpreter Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ pub async fn pip_install_if_needed(
1515 create_dir_all ( & cache_path) ?;
1616
1717 let hash = shasum:: sha256sum ( & requirements_path) ?;
18- let venv_path = cache_path. join ( hash) ;
18+ let venv_path = cache_path. join ( "venvs" ) . join ( hash) ;
1919 let bin_path = venv_path. join ( if cfg ! ( windows) { "Scripts" } else { "bin" } ) ;
2020
2121 if !venv_path. exists ( ) {
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use ::std::fs::File;
22use :: std:: io:: { copy, Result } ;
33use :: std:: path:: Path ;
44
5- use base64ct:: { Base64 , Encoding } ;
5+ use base64ct:: { Base64Url , Encoding } ;
66use sha2:: { Digest , Sha256 } ;
77
88pub fn sha256sum ( path : & Path ) -> Result < String > {
@@ -12,5 +12,5 @@ pub fn sha256sum(path: &Path) -> Result<String> {
1212 copy ( & mut file, & mut hasher) ?;
1313 let hash_bytes = hasher. finalize ( ) ;
1414
15- Ok ( Base64 :: encode_string ( & hash_bytes) )
15+ Ok ( Base64Url :: encode_string ( & hash_bytes) )
1616}
You can’t perform that action at this time.
0 commit comments