<ignore-adding-targets> doesn’t seem to work for `...
# general
f
ignore-adding-targets doesn’t seem to work for
requirements.txt
. For example, in an extremely minimal repo:
Copy code
# pants.toml
[GLOBAL]
pants_version = "2.8.0rc4"
backend_packages = [
  "pants.backend.python",
]

[tailor]
ignore_adding_targets = ["//:requirements.txt"]
reports
Copy code
./pants tailor --check
Would update BUILD:
  - Add python_requirements target requirements.txt
if there is a
requirements.txt
in the same directory. (In the middle of incremental adoption of pants and we’ve got a bunch of
requirements.txt
spread around that I need to ignore because they have duplicated targets). Am I doing something silly wrong, or is there a bug here?
h
Ah definitely a bug.
python_requirements
is weird, it's not actually a target. It's using this old macro system we're very soon deprecating in favor of a better implementation You can set this instead:
Copy code
[python]
tailor_requirements_targets = false
(Bug report also very much appreciated if you have a moment!)
👍 1
f