Repository navigation
chore: 改用 matchUpdateTypes 禁用 python 大/小版本自动升级 - #44
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
上一版规则(#42 / #16)用的是:
{ "matchPackageNames": ["python"], "allowedVersions": "<3.15" }但 Renovate 对 Docker 镜像(
python:3.12-slim)使用的 docker versioning 声明了supportsRanges = false,allowedVersions的范围约束在这里不是可靠路径;而actions/python-versions的python-version又走 github-tags 数据源,两者混在同一个 packageName 下。规则落地后 Renovate 仍在创建 3.15 的 PR(news-crawler #43/#17)。改动
改成不依赖 versioning 语义的写法:
{ "matchPackageNames": ["python"], "matchUpdateTypes": ["major", "minor"], "enabled": false }python-version两处(packageName 都是python);恢复条件
lxml 发布 cp315 wheel、
python:3.15-slim补齐 libxml2/libxslt 后,删除此规则即可。验证
json.load()解析通过,规则为matchUpdateTypes=["major","minor"]+enabled=false;