英文:
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
。我猜这是因为可能存在其他包含单词 requirements
的 txt
文件。
所以,请将您的文件从 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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论