See original issue on GitLab
In GitLab by [Gitlab user @cs-shadow] on Jul 3, 2020, 12:12
Summary
BuildStream mainly offers two options to tweak element sections - --except and --deps. However they are not accepted uniformly by all commands.
For example, some commands like show, source checkout etc support --except option to exclude certain elements from the pipeline. However, others like artifact checkout don't.
Similarly, not all commands accept all values for --deps. For example, source track only accepts all and none whereas show accepts all|none|build|run|plan. Out of these, plan is probably the most tricky one, as mentioned in https://gitlab.com/BuildStream/buildstream/-/merge_requests/1893#note_335927435. We need a plan about how to handle --deps plan sensibly. But, it should be generally reasonable to add the other options to all the commands.
Todo
Part of --deps unification was implemented in !1904. Here's what's left to do:
See original issue on GitLab
In GitLab by [Gitlab user @cs-shadow] on Jul 3, 2020, 12:12
Summary
BuildStream mainly offers two options to tweak element sections -
--exceptand--deps. However they are not accepted uniformly by all commands.For example, some commands like
show,source checkoutetc support--exceptoption to exclude certain elements from the pipeline. However, others likeartifact checkoutdon't.Similarly, not all commands accept all values for
--deps. For example,source trackonly acceptsallandnonewhereasshowacceptsall|none|build|run|plan. Out of these,planis probably the most tricky one, as mentioned in https://gitlab.com/BuildStream/buildstream/-/merge_requests/1893#note_335927435. We need a plan about how to handle--deps plansensibly. But, it should be generally reasonable to add the other options to all the commands.Todo
Part of
--depsunification was implemented in !1904. Here's what's left to do:--depsfor the remaining commands--exceptto commands more consistently, review where it should be added--deps plan, especially important from API perspective if it's going to move out of--depsoption