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

stale-nightfall-29801

11/17/2021, 2:28 PM
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

enough-analyst-54434

11/17/2021, 3:09 PM
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

stale-nightfall-29801

11/17/2021, 3:19 PM
ahh ha, thanks
h

happy-kitchen-89482

11/17/2021, 4:18 PM
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

hundreds-father-404

11/17/2021, 4:25 PM
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

stale-nightfall-29801

11/18/2021, 12:24 PM
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
5 Views