<#21763 List goal with `--changed-since` doesn't l...
# github-notifications
c
#21763 List goal with `--changed-since` doesn't list BUILD file changes Issue created by KristianTashkov Describe the bug \nMaking a change in a BUILD file and then running on changed targets has differing behavior depending on whether you use
--changed-since
as a goal filter or if you save the result into a file via
list
and use
--spec-files
on the lint goal.\n\nSteps to reproduce:\n\ngit clone https://github.com/pantsbuild/example-python\ncd example-python\necho \"\" >> helloworld/BUILD\n\n# This correctly fails black because the BUILD file format has an extra new line in the end\npants --changed-since=HEAD lint \n\n# runs linter only on source mapped inside changed BUILD FILE, but not the BUILD file itself so black passes.\npants --changed-since=HEAD list > changed_targets.txt \npants --spec-files=changed_targets.txt lint \n\nWith the contents of `changed_targets.txt`:\n\n```\nhelloworldpex binary\nhelloworld/ init .pylib\nhelloworld/main.py:lib\n\n```\n\n*Pants version* \n2.23.0\n\n*OS* \nMacOS\n\n*Additional info* pantsbuild/pants