Closed
Description
Describe the bug
- I get this warning every time I run pre-commit:
[WARNING] The 'rev' field of repo 'https://github.com/opensource-nepal/commitlint' appears to be a mutable reference (moving tag / branch). Mutable references are never updated after first install and are not supported. See https://pre-commit.com/#using-the-latest-version-for-a-repository for more details.
- No matter if I set a specific rev in
.pre-commit-config.yaml
, running the hook or autoupdate reverts it to just v1
To Reproduce
- install hook with specific rev
- run hook (So far so good.)
- Now run with
pre-commit autoupdate
and see the rev change
Expected behavior
- no warning
- if I use a specific rev in
.pre-commit-config.yaml
it should stick to it
Environment
- Python version: 3.12.4
- Package version: I'd like to say 1.2.0 but see above comments about rev not working properly
- Operating system: macOS 14.6.1
Additional context
the relevant .pre-commit-config.yaml
I set but running autoupdate
reverts it to just v1:
- repo: https://github.com/opensource-nepal/commitlint
rev: v1.2.0
hooks:
- id: commitlint