Skip to content

Conversation

@vlaci
Copy link
Contributor

@vlaci vlaci commented Sep 19, 2025

Since some time around April, renovate started to update only
packages, where pyproject.toml update was needed (constraints
update).

I have not found documentation about this change, only a github discussion1.

Meaning of rangeStrategy=update-lockfile2 option:

Update the lock file when in-range updates are available, otherwise
replace for updates out of range.

And replace:

Replace the range with a newer one if the new version falls outside
it, and update nothing otherwise

At least when using the PEP621 backend (uv), renovate only cares about
dependencies which have at least one constraint, otherwise it bypasses
them.

This can see from the logs3:

      {
        "datasource": "pypi",
        "depName": "pyzstd",
        "depType": "project.dependencies",
        "lockedVersion": "0.17.0",
        "packageName": "pyzstd",
        "skipReason": "unspecified-version",
        "updates": []
      },

Footnotes

  1. https://github.com/renovatebot/renovate/discussions/36286

  2. https://docs.renovatebot.com/configuration-options/#rangestrategy

  3. https://developer.mend.io/github/onekey-sec/unblob

At least when using the PEP621 backend (uv), renovate only cares about
dependencies which have at least one constraint, otherwise it bypasses
them.

This can see from the logs:

          {
            "datasource": "pypi",
            "depName": "pyzstd",
            "depType": "project.dependencies",
            "lockedVersion": "0.17.0",
            "packageName": "pyzstd",
            "skipReason": "unspecified-version",
            "updates": []
          },

https://developer.mend.io/github/onekey-sec/unblob
…ed in uv.lock

Since some time around April, renovate started to update only
packages, where `pyproject.toml` update was needed (constraints
update).

I have not found documentation about this change, only a github discussion[^1].

Meaning of rangeStrategy=update-lockfile[^2] option:

> Update the lock file when in-range updates are available, otherwise
> replace for updates out of range.

And replace:

> Replace the range with a newer one if the new version falls outside
> it, and update nothing otherwise

[^1]: renovatebot/renovate#36286
[^2]: https://docs.renovatebot.com/configuration-options/#rangestrategy
@vlaci vlaci self-assigned this Sep 19, 2025
@vlaci vlaci added this pull request to the merge queue Sep 19, 2025
Merged via the queue into main with commit b5d58e6 Sep 19, 2025
23 checks passed
@vlaci vlaci deleted the fix-renovate branch September 19, 2025 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants