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

curved-television-6568

08/30/2021, 12:54 PM
It seems that
pantsd
does not pick up changes to
.gitignore
and is not restarted automatically, so it becomes a manual labor to make sure it is restarted in order for changes to have any effect. Is this known?
h

happy-kitchen-89482

08/30/2021, 3:29 PM
Have you tried adding
.gitignore
to
pantsd_invalidation_globs
? (https://www.pantsbuild.org/docs/reference-global#section-pantsd-invalidation-globs)
Possibly it should be in there by default
👍 2
c

curved-television-6568

08/30/2021, 5:05 PM
Yeah, no I haven’t tried that (and realize that would work) However, as it uses it by default for ignore patterns, it would make sense to also invalidate on it by default 😉
w

witty-crayon-22786

08/31/2021, 3:50 PM
it would yea: a patch would be welcome to do that.
there are a list of things that are consumed outside of
@rules
(so the usual invalidation doesn’t “just work”) here: https://github.com/pantsbuild/pants/blob/88e895a49823e76660ca3467b521ef84973ba104/src/python/pants/option/global_options.py#L1609-L1622
c

curved-television-6568

08/31/2021, 4:33 PM
6 Views