Is there a way to do something like the following:...
# general
s
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
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
Thanks, I'll check that out