If I run `pants dependents --transitive --changed-...
# general
s
If I run
pants dependents --transitive --changed-since=origin/main
I'll get something like
Copy code
foo:foo
foo:cli
foo/src/foo/__main__.py
...
The target
Copy code
foo:foo
Is a docker_image (I can validate via
pants peek foo:foo
) if I run
pants package --changed-since=origin/main --dependents-transitive --dependents-closed
I'd expect the docker_image to build but that's not happening. What am I missing?
l
Copy code
$ pants help changed
...
  --changed-dependents=<DependentsOption>
  PANTS_CHANGED_DEPENDENTS
  dependents
      one of: [none, direct, transitive]
      default: none
      current value: none
      Include direct or transitive dependents of changed targets.
You will need to add
--changed-dependents=transitive
The
--dependents-
options are only relevant if you are running
pants dependents
s
Thanks!
c
this suggests we have a slight design issue, where each goal has their own flags for the ~same thing.
👍 1
l
It would seem like we should error or warn when an option from a GoalSubsystem is passed when that goal is not even being requested to run.
👍 1
c
I'd say not to error, we don't know the reason it was being passed, but we could potentially warn if it was provided on the command line for a short-term stop gap I guess..
👍 1