diff options
author | Chandan Singh <chandan@chandansingh.net> | 2020-05-07 19:58:18 +0000 |
---|---|---|
committer | Chandan Singh <chandan@chandansingh.net> | 2020-05-13 20:04:15 +0000 |
commit | a34ff401b4fa3d3649b46ecc336fa27a110373fa (patch) | |
tree | 3af7f4f40748bd628b2c23fdf85bc3e83ae9253d /src/buildstream/_frontend | |
parent | 0769103ca25f113ab8e64bafb264781199a4dcac (diff) | |
download | buildstream-a34ff401b4fa3d3649b46ecc336fa27a110373fa.tar.gz |
_frontend/cli: Support "build" value for `bst build --deps`
This can be quite handy when one is preparing to open a build shell.
This originally came up in
https://gitlab.com/BuildStream/buildstream/-/issues/685#note_105460896.
Diffstat (limited to 'src/buildstream/_frontend')
-rw-r--r-- | src/buildstream/_frontend/cli.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/buildstream/_frontend/cli.py b/src/buildstream/_frontend/cli.py index e8e2112aa..b8fd55b08 100644 --- a/src/buildstream/_frontend/cli.py +++ b/src/buildstream/_frontend/cli.py @@ -460,7 +460,9 @@ def init(app, project_name, min_version, element_path, force, target_directory): "--deps", "-d", default=None, - type=FastEnumType(_PipelineSelection, [_PipelineSelection.PLAN, _PipelineSelection.ALL]), + type=FastEnumType( + _PipelineSelection, [_PipelineSelection.BUILD, _PipelineSelection.PLAN, _PipelineSelection.ALL], + ), help="The dependencies to build", ) @click.option( @@ -482,6 +484,7 @@ def build(app, elements, deps, remote): \b plan: Only dependencies required for the build plan + build: Build time dependencies, excluding the element itself all: All dependencies """ with app.initialized(session_name="Build"): |