summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-05-29 14:48:27 +0100
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-05-29 14:48:27 +0100
commitf831b421eb8245426e071a6a86bd0e87d48cf52f (patch)
tree530d4085039d5f0d7a728d33084f79941a6940b8
parent9a831cc07ce3b5e7e52c309abf013ccccd147b7a (diff)
downloadmorph-baserock/pedroalvarez/conf-exts-cache-key.tar.gz
Ignore the configuration extensions when generating the cache-keybaserock/pedroalvarez/conf-exts-cache-key
System artifacts won't change because of changes in the configuration extensions. These extensions run at deployment time, therefore, they are ignored for generating the cache-key.
-rw-r--r--morphlib/cachekeycomputer.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/morphlib/cachekeycomputer.py b/morphlib/cachekeycomputer.py
index 33eef082..95fa8647 100644
--- a/morphlib/cachekeycomputer.py
+++ b/morphlib/cachekeycomputer.py
@@ -115,6 +115,9 @@ class CacheKeyComputer(object):
# Disregard all fields of a morphology that aren't important
ignored_fields = (
'description', # purely cosmetic, doesn't change builds
+ # Configuration extensions aren't run at build time, therefore
+ # they don't have to be included in the cache key.
+ 'configuration-extensions',
# The following are used to determine dependencies,
# so are already handled by the 'kids' field.
'strata', 'build-depends', 'chunks',