I'm hitting a confusing interaction between filter...
# general
a
I'm hitting a confusing interaction between filtering targets with
--changed-since
and piping it's output to another command with
--spec-files
. If your only working dir change is a BUILD file change, these two commands yield different results:
Copy code
$ pants --changed-since=HEAD lint    # runs linter on the BUILD file and sources mapped inside

$ pants --changed-since=HEAD list > changed_targets.txt 
$ pants --spec-files=changed_targets.txt lint   # runs linter only on source mapped inside changed BUILD FILE, but not the BUILD file itself
Is this expected?
c
That doesn't sound expected. Would you mind opening an issue with a brief example? ex: where you
echo
some text to a BUILD file in https://github.com/pantsbuild/example-python
👍 1
a