You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by ro...@apache.org on 2020/12/29 13:42:44 UTC

[buildstream] 04/05: main.py: Add `bst build --track-all`

This is an automated email from the ASF dual-hosted git repository.

root pushed a commit to branch tracking-changes
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit c38208606ea52c9fb160bec51b145f2080af491c
Author: Tristan Maat <tr...@codethink.co.uk>
AuthorDate: Thu Dec 7 11:40:59 2017 +0000

    main.py: Add `bst build --track-all`
---
 buildstream/_frontend/main.py | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/buildstream/_frontend/main.py b/buildstream/_frontend/main.py
index 8c47539..813d09a 100644
--- a/buildstream/_frontend/main.py
+++ b/buildstream/_frontend/main.py
@@ -202,14 +202,19 @@ def cli(context, **kwargs):
 @click.option('--track-except', multiple=True,
               type=click.Path(dir_okay=False, readable=True),
               help="Except certain dependencies from tracking")
+@click.option('--track-all', default=False, is_flag=True,
+              help="Track all elements in the build pipeline before building")
 @click.option('--track-save', default=False, is_flag=True,
               help="Write out the tracked references to their element files")
 @click.argument('elements', nargs=-1,
                 type=click.Path(dir_okay=False, readable=True))
 @click.pass_obj
-def build(app, elements, all, track, track_save, track_except):
+def build(app, elements, all, track, track_save, track_all, track_except):
     """Build elements in a pipeline"""
 
+    if track_all:
+        track = elements
+
     app.initialize(elements, except_=track_except, rewritable=track_save)
     app.pipeline.initialize(use_remote_cache=True, inconsistent=track)
     app.print_heading()