diff options
author | Chandan Singh <csingh43@bloomberg.net> | 2019-02-12 19:57:09 +0530 |
---|---|---|
committer | Chandan Singh <csingh43@bloomberg.net> | 2019-02-26 03:05:03 +0530 |
commit | 4e76f83c5d4d42f1fd54a9b4c595f93b32b5509e (patch) | |
tree | 3481f1bfc422120168c50c65f2694cc61f8cc861 /doc | |
parent | dc73ab679a1eac4cbb00f7ec7220ef5259d0e41d (diff) | |
download | buildstream-4e76f83c5d4d42f1fd54a9b4c595f93b32b5509e.tar.gz |
Document how to refer to cross-junction dependencies inlinechandan/junction-dependency-format
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 714e1fa33..6a59557d4 100644 --- a/doc/source/format_declaring.rst +++ b/doc/source/format_declaring.rst @@ -401,6 +401,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 23 <project_format_version>` + + .. _format_dependencies_types: Dependency types |