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

silly-queen-7197

04/28/2023, 9:24 PM
Is there a way to do something like the following: Say
./pants list --filter-target-type=pex_binary ::
gives me
Copy code
foo:cli
Can I look at all the commits that contain modifications to (transitive) dependencies of
foo:cli
and then get the latest one (on a given branch). I'm interested in this because I want to be able to answer the question is the latest version of
foo:cli
deployed. Maybe an unrelated question. If I wrap everything into a helm chart and use [helm-deployments](https://www.pantsbuild.org/docs/helm-deployments) is the deployment a no-op if none of the dependencies have changed?
e

enough-analyst-54434

04/28/2023, 9:38 PM
I think you're looking for the
filedeps
goal: https://www.pantsbuild.org/docs/project-introspection#filedeps---find-which-files-a-target-owns No built-in goal does all of what you want but you can string it together in a script.
Keep in mind that goal operates now. The answer of what is the set of filedeps will of course vary in the commit history!
s

silly-queen-7197

04/28/2023, 9:54 PM
Thanks, I'll check that out