Skip to content

prek auto-update upgrades pinned tag to mutable nightly rev, then warns it is unsupported #1325

@pygarap

Description

@pygarap

Running prek auto-update changes a pinned rev for lycheeverse/lychee from a stable tag to the mutable branch nightly, and then prints a warning that mutable rev values are unsupported and will not be updated after first install. This upgrade target seems wrong because it replaces a stable pin with a mutable reference.

Reproduction
  1. .pre-commit-config.yaml:
  1. Run: prek auto-update
Warning:

warning: The following repos have mutable rev fields (moving tag / branch):
https://github.com/lycheeverse/lychee: nightly
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.
Hint: prek autoupdate often fixes this

Expected Result:

prek auto-update should not replace a pinned tag/commit with a mutable rev like nightly. It should prefer the latest stable tag.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions