Whats the correct way to get Pants to detect chang...
# general
s
Whats the correct way to get Pants to detect changes in the
requirements.txt
the
python_requirements()
uses? Here's how my requirements are set up (see image) It looks like there was an issue around this but it looks like it's been merged (https://github.com/pantsbuild/pants/pull/9946)
e
If you read that PR closely you'll see you run afoul of not matching the defaults. You should be able to compensate with
[GLOBAL] pantsd_invalidation_globs
See: https://www.pantsbuild.org/docs/reference-global
(thirdparty vs 3rdparty)
s
ahh ha, thanks
h
Which version of Pants are you on?
@hundreds-father-404 is
python_requirements
still a macro, not a generator? I forget where we landed on this
h
I have a wip PR from a month ago to switch it to be a target generator, but I haven't landed it because it's a disruptive change that we need to automate migrating to via
update-build-files
I really want to fix it asap tho, this is such a common gotcha
s
I'm on 2.7.1 I've not currently got the time to dedicate to our Pants migration to fix up the config to move to 2.8