Currently it seems that either a task can have a `depends_on` section, or the variant it runs on can have a `depends_on` section, but not both. For example, I would like for `my_task` to depend on `task_dependency`, but this is currently impossible because `my_task`'s buildvariant depends on compile, so `task_dependency` is completely ignored.
This behavior seems consistent with the code here , but is it necessary? Couldn't variant-level dependencies and task-level dependencies be merged and both satisfied?
Otherwise the workaround seems to be to add `task_dependency` as another variant-level dependency along with compile, but this is wasteful in situations where `my_task` isn't run.