mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 00:04:42 +04:00
don't set CARGO_HOME in rust
this adds a 270 MB registry cache in the output
This commit is contained in:
parent
d5f919e72f
commit
a412e5492d
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:
|
||||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue