able-school-92027
01/08/2024, 5:54 PMable-school-92027
01/08/2024, 5:55 PMhappy-kitchen-89482
01/08/2024, 7:54 PM@path/to/file
. I'm not sure if this will work for plugins though, as those are needed at bootstrap time and I'm not sure we process that early enough, but worth a try?happy-kitchen-89482
01/08/2024, 7:56 PM.json
, `.yml`/`.yaml`, or anything else is just used as-isable-school-92027
01/08/2024, 8:50 PM.txt
file, when I have multiple, the pants setup fails because the dependencies are read as a single line, even tho each dependency are on different lines.
e.g. if I have this .txt
file:
foo==0.0.1
bar==2.0.1
the pants setup reads the dependencies as $'foo==0.0.1\nbar==2.0.1'
and fails with:
ProcessExecutionFailure: Process 'Resolving plugins: foo==0.0.1
bar==2.0.1' failed with exit code 1.
stdout:
stderr:
<string> line 1:
foo==0.0.1
bar==2.0.1
Problem parsing 'foo==0.0.1\nbar==2.0.1' as a requirement: Parse error at "'bar==2.'": Expected stringEnd
able-school-92027
01/08/2024, 8:51 PM$'foo==0.0.1' $'bar==2.0.1'
but dependabot doesn't read json or yaml files when looking for python requirements.able-school-92027
01/08/2024, 10:04 PMPANTS_GLOBAL_PLUGINS="foo==0.0.1 bar==2.17.1"
happy-kitchen-89482
01/09/2024, 1:03 AMhappy-kitchen-89482
01/09/2024, 1:03 AM[
"foo",
"bar",
]
then it should workhappy-kitchen-89482
01/09/2024, 1:03 AMhappy-kitchen-89482
01/09/2024, 1:04 AMable-school-92027
01/09/2024, 1:18 PMthat doesn't help dependabotIndeed, if I try to set the dependencies as a literal python list, dependabot fails with
dependency_file_not_evaluatable
.
this would require augmenting that option to accept a requirements fileDo you think this is something pants could support or this is out of scope?
happy-kitchen-89482
01/09/2024, 11:22 PMhappy-kitchen-89482
01/09/2024, 11:22 PMable-school-92027
01/10/2024, 9:13 PM.txt
file content by newlines would affect all options, right? I didn't find on the code where to change just the plugins
option.happy-kitchen-89482
01/11/2024, 3:40 PMsrc/python/pants/init/plugin_resolver.py
happy-kitchen-89482
01/11/2024, 3:41 PMhappy-kitchen-89482
01/11/2024, 3:42 PMhappy-kitchen-89482
01/11/2024, 3:42 PM