DiDeNTABOT配置:允许属性不允许依赖依赖的更新
我正在尝试使用允许
属性属性自定义哪些依赖项的属性。
研究:允许
我看到 允许
属性正在阻止依赖关系的更新,而不是允许更新。同样,允许一个依赖性的是防止所有依赖关系的更新。
例如,我将允许
属性添加到允许仅更新一个依赖项POI-OOXML 。我想跳过所有其他依赖项。
allow:
- dependency-name: "org.apache.poi:poi-ooxml"
结果:
- 所有依赖性更新均已跳过。
日志文件:
2022-06-16T20:41:32.4554260Z Checking if org.apache.poi:poi 4.1.1 needs updating
2022-06-16T20:41:32.4554513Z Requirements to unlock own
2022-06-16T20:41:32.4554747Z Updating org.apache.poi:poi is not allowed
2022-06-16T20:41:32.4555148Z Checking if org.apache.poi:poi-ooxml 4.1.1 needs updating
2022-06-16T20:41:32.4555414Z Requirements to unlock own
2022-06-16T20:41:32.4555760Z Updating org.apache.poi:poi-ooxml is not allowed
根据要求添加完整的YAML
version: 2
updates:
- package-ecosystem: maven
directory: "/xxx"
target-branch: "xxx"
open-pull-requests-limit: 10
allow:
- dependency-name: "org.apache.poi:poi-ooxml"
I am trying to customize which dependencies are updated using the allow
property of Dependabot's configuration YAML.
Research: allow
I see that the allow
property is preventing update of the dependencies instead of allowing update. Also, an allow for one dependency is preventing update for all dependencies.
For example I added the allow
property as below to allow for update of just one dependency poi-ooxml. I want to skip updates to all other dependencies.
allow:
- dependency-name: "org.apache.poi:poi-ooxml"
Result:
- All dependency updates are skipped.
Log file:
2022-06-16T20:41:32.4554260Z Checking if org.apache.poi:poi 4.1.1 needs updating
2022-06-16T20:41:32.4554513Z Requirements to unlock own
2022-06-16T20:41:32.4554747Z Updating org.apache.poi:poi is not allowed
2022-06-16T20:41:32.4555148Z Checking if org.apache.poi:poi-ooxml 4.1.1 needs updating
2022-06-16T20:41:32.4555414Z Requirements to unlock own
2022-06-16T20:41:32.4555760Z Updating org.apache.poi:poi-ooxml is not allowed
Adding full yaml as requested
version: 2
updates:
- package-ecosystem: maven
directory: "/xxx"
target-branch: "xxx"
open-pull-requests-limit: 10
allow:
- dependency-name: "org.apache.poi:poi-ooxml"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
配置的允许属性:
应导致文档指定的行为:
组
org.apache.poi
的第一个依赖性是不允许的,因为您的允许
仅指定 artifactpoi-ooooxml 。
如果未在
中指定
中未指定的话,应允许第二个依赖关系。日志表明必须有一个覆盖
igaine
如文档中所述:因此,日志状态“不允许”:
The allow property of your configuration:
Should lead to behavior as specified by the docs:
The first dependency of group
org.apache.poi
is not allowed, because yourallow
specified only the artifactpoi-ooxml
.The second dependency should be allowed if not specified in
ignore
.The logs indicate that there must be an overriding
ignore
like explained in the docs:Thus the logs state "not allowed":