Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

bug: use specific version in hook #64

Closed
Assignees
Labels
bugSomething isn't working help wantedExtra attention is needed
@andreacfromtheapp

Description

Describe the bug

  1. 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.
  1. 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

  1. install hook with specific rev
  2. run hook (So far so good.)
  3. Now run with pre-commit autoupdate and see the rev change

Expected behavior

  1. no warning
  2. 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

Metadata

Metadata

Labels

bugSomething isn't working help wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      AltStyle によって変換されたページ (->オリジナル) /