summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Ennis <james.ennis@codethink.com>2018-05-21 17:27:48 +0100
committerJürg Billeter <j@bitron.ch>2018-05-23 14:45:48 +0000
commita06778aa10be8076ecb9c78bbeda3b03a751fa94 (patch)
treeb120a332389c0495f47bce7a52dad39f9b562a08
parent4d92c10686012bfda93bed221e61e31c154458a2 (diff)
downloadbuildstream-a06778aa10be8076ecb9c78bbeda3b03a751fa94.tar.gz
junction.py: Include note regarding explicit tracking
-rw-r--r--buildstream/plugins/elements/junction.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/buildstream/plugins/elements/junction.py b/buildstream/plugins/elements/junction.py
index df7faf3c5..81fd57445 100644
--- a/buildstream/plugins/elements/junction.py
+++ b/buildstream/plugins/elements/junction.py
@@ -70,6 +70,22 @@ However, junction elements do not produce any artifacts, which means that
they cannot be built or staged. It also means that another element cannot
depend on a junction element itself.
+.. note::
+
+ BuildStream does not implicitly track junction elements. This means
+ that if we were to invoke: `bst build --track-all ELEMENT` on an element
+ which uses a junction element, the ref of the junction element
+ will not automatically be updated if a more recent version exists.
+
+ Therefore, if you require the most up-to-date version of a subproject,
+ you must explicitly track the junction element by invoking:
+ `bst track JUNCTION_ELEMENT`.
+
+ Furthermore, elements within the subproject are also not tracked by default.
+ For this, we must specify the `--track-cross-junctions` option. This option
+ must be preceeded by `--track ELEMENT` or `--track-all`.
+
+
Sources
-------
``bst show`` does not implicitly fetch junction sources if they haven't been