diff options
author | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-09-04 12:18:16 -0400 |
---|---|---|
committer | Tristan Van Berkom <tristan.vanberkom@codethink.co.uk> | 2017-09-04 12:18:16 -0400 |
commit | 1d9e7c186dce262842736a8089069fb33121f57c (patch) | |
tree | d166ececdd4248c27f1e2ca9ace3f0a7e6fd50d4 | |
parent | ce675ba46b6745b2625fc21e03a8fbf50b2de78b (diff) | |
download | buildstream-1d9e7c186dce262842736a8089069fb33121f57c.tar.gz |
project.py: Declare main BST_ARTIFACT_VERSION here
Instead of hiding it away in the Element constructor, I want
this to be easy to find.
-rw-r--r-- | buildstream/project.py | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/buildstream/project.py b/buildstream/project.py index aeb6b5f39..fb91d30ef 100644 --- a/buildstream/project.py +++ b/buildstream/project.py @@ -38,6 +38,23 @@ from . import _loader # For resolve_arch() from ._profile import Topics, profile_start, profile_end from . import LoadError, LoadErrorReason +BST_FORMAT_VERSION = 0 +"""The base BuildStream format version + +This version is bumped whenever enhancements are made +to the ``project.conf`` format or the format in general. +""" + +BST_ARTIFACT_VERSION = 0 +"""The base BuildStream artifact version + +The artifact version changes whenever the cache key +calculation algorithm changes in an incompatible way +or if buildstream was changed in a way which can cause +the same cache key to produce something that is no longer +the same. +""" + # The separator we use for user specified aliases _ALIAS_SEPARATOR = ':' @@ -51,14 +68,6 @@ class _ProjectVariant(): del self.data['variant'] -BST_FORMAT_VERSION = 0 -"""The base BuildStream format version - -This version is bumped whenever enhancements are made -to the ``project.conf`` format or the format in general. -""" - - class Project(): """Project Configuration |