Hey folks, am i correct in understanding that you ...
# general
w
Hey folks, am i correct in understanding that you cannot combine a spec-file with a
--changed-include-dependees
flag?
h
You can use that flag, but it won’t do anything. The flag only has an impact on the behavior of —changed-since
If you want to see what targets have changed, you can run ./pants dependencies —transitive project.py
w
yeah i figured out what i was going. for. essentially wanted all changed targets - build file changes + dependees
👍 1
h
w
so basically
git diff | grep -v BUILD | xargs ./pants list | xargs ./pants dependees
a little involved but. it works
h
—changed-since + that flag will get what you’re describing without this dance
w
right bu it will also grab targets that. only have cosmetic changes appliedto. the. BUILD file
h
I see. Yes, that is true.
w
imo it would make sense to have a
--include-dependees=[direct|transitive]
that applies to all styles of target selelction
my ideal case was to build a spec-file and. run:
Copy code
./pants --spec-file=/tmp/changes --changed-include-dependees=direct deploy
h
That’s a good feature request. Would you be willing to open a github issue with that idea?
w
of course!
h
Thanks :) a
w
https://github.com/pantsbuild/pants/issues/10087 I think this sums it up, happy to edit or elaborate.
h
Looks good, thanks!
❤️ 1