summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--morphlib/artifact.py4
-rw-r--r--morphlib/cachekeycomputer.py2
2 files changed, 1 insertions, 5 deletions
diff --git a/morphlib/artifact.py b/morphlib/artifact.py
index 1e67643e..cf5cbdbb 100644
--- a/morphlib/artifact.py
+++ b/morphlib/artifact.py
@@ -26,9 +26,6 @@ class Artifact(object):
* ``cache_id`` -- a dict describing the components of the cache key
* ``dependencies`` -- list of Artifacts that need to be built beforehand
* ``dependents`` -- list of Artifacts that need this Artifact to be built
- * ``metadata_version`` -- When the format of the artifact metadata
- changes, this version number is raised causing
- any existing cached artifacts to be invalidated
The ``dependencies`` and ``dependents`` lists MUST be modified by
the ``add_dependencies`` and ``add_dependent`` methods only.
@@ -42,7 +39,6 @@ class Artifact(object):
self.cache_key = None
self.dependencies = []
self.dependents = []
- self.metadata_version = 1
def add_dependency(self, artifact):
'''Add ``artifact`` to the dependency list.'''
diff --git a/morphlib/cachekeycomputer.py b/morphlib/cachekeycomputer.py
index cf44f76e..a9f5aabe 100644
--- a/morphlib/cachekeycomputer.py
+++ b/morphlib/cachekeycomputer.py
@@ -85,7 +85,7 @@ class CacheKeyComputer(object):
'env': self._filterenv(self._build_env.env),
'kids': [{'artifact': a.name, 'cache-key': self.compute_key(a)}
for a in artifact.dependencies],
- 'metadata-version': artifact.metadata_version
+ 'metadata-version': 1 # bump if /baserock metadata format changes
}
kind = artifact.source.morphology['kind']