mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-19 17:14:43 +04:00
Merge pull request #2820 from pre-commit/clear-rust-registry-cache
don't set CARGO_HOME in rust
This commit is contained in:
commit
fdb9ede460
1 changed files with 0 additions and 1 deletions
|
|
@ -50,7 +50,6 @@ def _rust_toolchain(language_version: str) -> str:
|
||||||
|
|
||||||
def get_env_patch(target_dir: str, version: str) -> PatchesT:
|
def get_env_patch(target_dir: str, version: str) -> PatchesT:
|
||||||
return (
|
return (
|
||||||
('CARGO_HOME', target_dir),
|
|
||||||
('PATH', (os.path.join(target_dir, 'bin'), os.pathsep, Var('PATH'))),
|
('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
|
# Only set RUSTUP_TOOLCHAIN if we don't want use the system's default
|
||||||
# toolchain
|
# toolchain
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue