Merge pull request #2820 from pre-commit/clear-rust-registry-cache

don't set CARGO_HOME in rust
This commit is contained in:
Anthony Sottile 2023-03-17 13:08:37 -04:00 committed by GitHub
commit fdb9ede460
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,6 @@ def _rust_toolchain(language_version: str) -> str:
def get_env_patch(target_dir: str, version: str) -> PatchesT:
return (
('CARGO_HOME', target_dir),
('PATH', (os.path.join(target_dir, 'bin'), os.pathsep, Var('PATH'))),
# Only set RUSTUP_TOOLCHAIN if we don't want use the system's default
# toolchain