#10 Update to 2.21.0 (close RHBZ#2156253); fixes FTBFS with git ≥ 2.38.1
Merged 3 months ago by churchyard. Opened 3 months ago by music.
rpms/ music/pre-commit v2.21  into  rawhide

file modified
+1
@@ -13,3 +13,4 @@ 

  /pre-commit-2.16.0.tar.gz

  /pre-commit-2.19.0.tar.gz

  /pre-commit-2.20.0.tar.gz

+ /pre-commit-2.21.0.tar.gz

file modified
+7 -5
@@ -1,8 +1,8 @@ 

  %bcond_without check

  

  Name:           pre-commit

- Version:        2.20.0

- Release:        3%{?dist}

+ Version:        2.21.0

+ Release:        1%{?dist}

  Summary:        Framework for managing and maintaining multi-language pre-commit hooks

  

  # SPDX
@@ -94,6 +94,8 @@ 

  k="${k-}${k+ and }not test_golang_hook_still_works_when_gobin_is_set"

  k="${k-}${k+ and }not test_golang_with_recursive_submodule"

  k="${k-}${k+ and }not test_install_ruby_with_version"

+ k="${k-}${k+ and }not test_installs_with_bootstrapped_rustup"

+ k="${k-}${k+ and }not test_installs_with_existing_rustup"

  k="${k-}${k+ and }not test_installs_without_links_outside_env"

  k="${k-}${k+ and }not test_local_conda_additional_dependencies"

  k="${k-}${k+ and }not test_local_golang_additional_dependencies"
@@ -108,9 +110,6 @@ 

  k="${k-}${k+ and }not test_run_ruby_hook_with_disable_shared_gems"

  k="${k-}${k+ and }not test_run_versioned_node_hook"

  k="${k-}${k+ and }not test_run_versioned_ruby_hook"

- # Requires Python 2 (forbidden as a BR, obsolete)

- k="${k-}${k+ and }not test_local_python_repo_python2"

- k="${k-}${k+ and }not test_switch_language_versions_doesnt_clobber"

  # Requires dart (not packaged):

  k="${k-}${k+ and }not test_dart_hook"

  k="${k-}${k+ and }not test_local_dart_additional_dependencies"
@@ -131,6 +130,9 @@ 

  

  

  %changelog

+ * Fri Jan 20 2023 Benjamin A. Beasley <code@musicinmybrain.net> - 2.21.0-1

+ - Update to 2.21.0 (close RHBZ#2156253); fixes FTBFS with git ≥ 2.38.1

+ 

  * Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 2.20.0-3

  - Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

  

file modified
+1 -1
@@ -1,1 +1,1 @@ 

- SHA512 (pre-commit-2.20.0.tar.gz) = b1da558a0e5d8f2f655427089f1d0b11b01ad7513ece7a0b3b67c33529cf3584edba558c78704e6da6ca18876b1d6c0fa8698e01fd7c2439b8d4dc0a93961e52

+ SHA512 (pre-commit-2.21.0.tar.gz) = d911a29d2a4d9095441a3d1105653780105bd320522bf3df692acebd4093048d91644ec85ab93ef2291e3e60ca2042bae83391d4013ac546f56bdeec29575ee4

https://github.com/pre-commit/pre-commit/compare/v2.20.0...v2.21.0

https://github.com/pre-commit/pre-commit/blob/v2.21.0/CHANGELOG.md#2210---2022-12-25

2.21.0 - 2022-12-25
===================

### Features
- Require new-enough virtualenv to prevent 3.10 breakage
    - #2467 PR by @asottile.
- Respect aliases with `SKIP` for environment install.
    - #2480 PR by @kmARC.
    - #2478 issue by @kmARC.
- Allow `pre-commit run --files` against unmerged paths.
    - #2484 PR by @asottile.
- Also apply regex warnings to `repo: local` hooks.
    - #2524 PR by @chrisRedwine.
    - #2521 issue by @asottile.
- `rust` is now a "first class" language -- supporting `language_version` and
  installation when not present.
    - #2534 PR by @Holzhaus.
- `r` now uses more-reliable binary installation.
    - #2460 PR by @lorenzwalthert.
- `GIT_ALLOW_PROTOCOL` is now passed through for git operations.
    - #2555 PR by @asottile.
- `GIT_ASKPASS` is now passed through for git operations.
    - #2564 PR by @mattp-.
- Remove `toml` dependency by using `cargo add` directly.
    - #2568 PR by @m-rsha.
- Support `dotnet` hooks which have dotted prefixes.
    - #2641 PR by @rkm.
    - #2629 issue by @rkm.

### Fixes
- Properly adjust `--commit-msg-filename` if run from a sub directory.
    - #2459 PR by @asottile.
- Simplify `--intent-to-add` detection by using `git diff`.
    - #2580 PR by @m-rsha.
- Fix `R.exe` selection on windows.
    - #2605 PR by @lorenzwalthert.
    - #2599 issue by @SInginc.
- Skip default `nuget` source when installing `dotnet` packages.
    - #2642 PR by @rkm.

This fixes FTBFS with git ≥ 2.38.1 in Rawhide/F38, F37, and F36, and should be a compatible update for all three.

Pull-Request has been merged by churchyard

3 months ago

Building pre-commit-2.21.0-1.fc38 for rawhide
Created task: 96442752
Task info: https://koji.fedoraproject.org/koji/taskinfo?taskID=96442752

Thanks. I’ll follow up with F37 and F36 when I have a chance.