diff options
author | Chandan Singh <csingh43@bloomberg.net> | 2019-02-12 19:57:09 +0530 |
---|---|---|
committer | Tristan Van Berkom <tristan.van.berkom@gmail.com> | 2019-07-25 17:10:01 +0000 |
commit | e4d163ab0b82d1b9fe17d55a5ef93a98e9d6738c (patch) | |
tree | 05b5fa22f17565c14eef20f5efd8c84b6895eeb0 /doc | |
parent | 28d351246dd3b09e132bd8d8628ebefb38ec4918 (diff) | |
download | buildstream-e4d163ab0b82d1b9fe17d55a5ef93a98e9d6738c.tar.gz |
Document how to refer to cross-junction dependencies inlinetristan/junction-dep-names-bst-1
In the previous commit, we added support to express cross-junction
dependencies inline as simple strings. Document it along with the
version in which the feature was added.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/source/format_declaring.rst | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/doc/source/format_declaring.rst b/doc/source/format_declaring.rst index b86bbfb1c..f69d4a479 100644 --- a/doc/source/format_declaring.rst +++ b/doc/source/format_declaring.rst @@ -381,6 +381,41 @@ Attributes: The ``junction`` attribute is available since :ref:`format version 1 <project_format_version>` +Cross-junction dependencies +~~~~~~~~~~~~~~~~~~~~~~~~~~~ +As mentioned above, cross-junction dependencies can be specified using the +``junction`` attribute. They can also be expressed as simple strings as a +convenience shorthand. You can refer to cross-junction elements using the +syntax ``{junction-name}:{element-name}``. + +For example, the following is logically same as the example above: + +.. code:: yaml + + build-depends: + - baseproject.bst:foo.bst + +Similarly, you can also refer to cross-junction elements via the ``filename`` +attribute, like so: + +.. code:: yaml + + depends: + - filename: baseproject.bst:foo.bst + type: build + +.. note:: + + BuildStream does not allow recursice lookups for junction elements. If a + filename contains more than one ``:`` (colon) character, an error will be + raised. See :ref:`nested junctions <core_junction_nested>` for more details + on nested junctions. + +.. note:: + + This shorthand is available since :ref:`format version 15 <project_format_version>` + + .. _format_dependencies_types: Dependency types |