如何配置dependabot来检查多个文件?

huangapple go评论63阅读模式
英文:

How to configure dependabot to check multiple files?

问题

以下是您要翻译的内容:

The official recommendation from pip-tools for cross-compilation is:

As the resulting requirements.txt can differ for each environment, users must execute pip-compile on each Python environment separately to generate a requirements.txt valid for each said environment.

I have multiple requirements files. One is called requirements.txt, another is reqiurements-silicon.txt

I have dependabot configured on github, but how do I get it to check multiple files?

英文:

The official recommendation from pip-tools for cross-compilation is:

> As the resulting requirements.txt can differ for each environment, users must execute pip-compile on each Python environment separately to generate a requirements.txt valid for each said environment.

I have multiple requirements files. One is called requirements.txt, another is reqiurements-silicon.txt

I have dependabot configured on github, but how do I get it to check multiple files?

答案1

得分: 1

基于用于requirements.txt的依赖测试单元requirements.txt 变种的命名必须在结尾包含 requirements.txt,否则它将无法被检测为 requirements.txt。我猜这是因为可能存在其他包含单词 requirementstxt 文件。

所以,请将您的文件从 requirements-silicon.txt 改为 silicon-requirements.txt。这会使命名变得奇怪,但至少 Dependabot 能够识别它。

英文:

Based on the unit tests for dependabot with requirements.txt, naming for requirements.txt variants has to include requirements.txt at the end - otherwise it will not be detected as a requirements.txt. I'd assume that is because there could be other txt files with the word requirements in them.

So change your file from requirements-silicon.txt to silicon-requirements.txt. This makes the ordering weird, but it at least gets picked up by Dependabot.

huangapple
  • 本文由 发表于 2023年3月31日 21:37:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/75899186.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定