1
0
Fork 0

Merging upstream version 3.1.1.

Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
Daniel Baumann 2025-02-09 21:39:26 +01:00
parent 9dad8e26bb
commit 6c8051a197
Signed by: daniel
GPG key ID: FBB4F0E80A80222F
3 changed files with 15 additions and 2 deletions

View file

@ -1,3 +1,11 @@
3.1.1 - 2023-02-27
==================
### Fixes
- Fix `rust` with `language_version` and a non-writable host `RUSTUP_HOME`.
- pre-commit-ci/issues#173 by @Swiftb0y.
- #2788 by @asottile.
3.1.0 - 2023-02-22
==================

View file

@ -142,10 +142,15 @@ def install_environment(
else:
packages_to_install.add((package,))
with in_env(prefix, version):
with contextlib.ExitStack() as ctx:
ctx.enter_context(in_env(prefix, version))
if version != 'system':
install_rust_with_toolchain(_rust_toolchain(version))
tmpdir = ctx.enter_context(tempfile.TemporaryDirectory())
ctx.enter_context(envcontext((('RUSTUP_HOME', tmpdir),)))
if len(lib_deps) > 0:
_add_dependencies(prefix, lib_deps)

View file

@ -1,6 +1,6 @@
[metadata]
name = pre_commit
version = 3.1.0
version = 3.1.1
description = A framework for managing and maintaining multi-language pre-commit hooks.
long_description = file: README.md
long_description_content_type = text/markdown