https://pantsbuild.org/ logo
#general
Title
# general
a

ambitious-student-81104

07/11/2022, 8:56 PM
can
--python-requirement-constraints
be used with
--no-enable-resolves
?
enable_resolves
is set in
pants.toml
but i want to override and set it to false when running a specific CI command that uses
--python-requirement-constraints
I’ve tried not setting it, setting it with
no
, and setting the environment variable
PANTS_PYTHON_ENABLE_RESOLVES: false
but still gettin this error:
Copy code
20:54:40.13 [ERROR] Can only provide one of these mutually exclusive options in scope 'python', but multiple given: enable_resolves, requirement_constraints
my expectation is that these 2 flags just can’t be
true
at the same time, so setting the
--no-enable-resolves
flag should work; but it doesn’t
h

hundreds-father-404

07/11/2022, 9:58 PM
Ah yeah that's a shortcoming of our mutually-exclusive options mechanism 😕 sounds like this is somewhat blocking? The only workaround I can think of is to not set it via
pants.toml
, but that's not very scalable If blocking, could you please open a GitHub issue? And you'd want it cherry-picked to 2.11?
3 Views