can `--python-requirement-constraints` be used wit...
# general
a
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
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?