summaryrefslogtreecommitdiff
path: root/buildstream/_versions.py
diff options
context:
space:
mode:
authorChandan Singh <csingh43@bloomberg.net>2018-12-06 16:18:04 +0000
committerChandan Singh <csingh43@bloomberg.net>2019-02-26 03:05:03 +0530
commit88ace418b0e9d1608b58c78e206d203af8fc6eeb (patch)
tree325fb511046353e29b63d4e151ab304823da5f7f /buildstream/_versions.py
parenta3f68c3d7e0796f1a5c9a5615bf902c805847cd5 (diff)
downloadbuildstream-88ace418b0e9d1608b58c78e206d203af8fc6eeb.tar.gz
loader: Allow dependencies to use ":" to refer to junctioned elements
This will allow cross-junction dependencies to be listed as strings on a single line. As part of this, some logic around initializing `Dependency()` objects have been moved out of `_extract_depends_from_node()` method into the constructor of `Dependency()` class, to keep all related code in one place. * _loader/types.py: While initializing `Dependency` objects, attempt to split filenames, only if no `junction` was specified explicitly. If a `junction` was specified, then filenames with `:` in their names will result in an error. * _loader/loadelement.py: Refactor logic to initialize `Dependency()` objects to move it to the `Dependency()` constructor. * tests/frontend/buildcheckout.py: Add tests to ensure the above. * _versions.py: Bump BST_FORMAT_VERSION. Fixes #809.
Diffstat (limited to 'buildstream/_versions.py')
-rw-r--r--buildstream/_versions.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/buildstream/_versions.py b/buildstream/_versions.py
index 5affc7870..56fd95223 100644
--- a/buildstream/_versions.py
+++ b/buildstream/_versions.py
@@ -23,7 +23,7 @@
# This version is bumped whenever enhancements are made
# to the `project.conf` format or the core element format.
#
-BST_FORMAT_VERSION = 22
+BST_FORMAT_VERSION = 23
# The base BuildStream artifact version