Using the `pants_ignore` directive in `pants.toml`...
# general
c
Using the
pants_ignore
directive in
pants.toml
combined with the vcs_version and pylint target causes a infinite loop when running the
lint
goal. Looks like pylint triggers a filesystem change and pants rerun. I’ll make a cutdown minimal example repo and submit a github issue.
1
b
Do you use
pants_ignore = ...
or
pants_ignore.add = ...
? If the first one, you may've overwritten the default (see https://www.pantsbuild.org/docs/reference-global#pants_ignore), and thus pants may be looking for changes in
.
directories like
.git
?
c
!
Thanks that explains it. I’ve been using
pants_ignore
not
pants_ignore.add
b
No worries, we had done the same thing
c
it’s weird that this didn’t cause problems for us until we had codegen. I guess that makes sense actually