summaryrefslogtreecommitdiff
path: root/src/buildstream/_project.py
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-06-28 12:29:25 +0100
committerbst-marge-bot <marge-bot@buildstream.build>2019-07-15 14:14:03 +0000
commit8565ab2b3340c73f142cbb40c2c49d458de39370 (patch)
treeed1555db5df6f25a54052529f06ea08f84864a10 /src/buildstream/_project.py
parentc86de17c83ef09d51dd6deddf65c31c28a16eb73 (diff)
downloadbuildstream-8565ab2b3340c73f142cbb40c2c49d458de39370.tar.gz
_cachekey: Remove the 'node_sanitization' done before the json string
Since ujson already sorts the keys, we just need to be able to jsonify Nodes sensibly. This is done by implementing __json__ on the 'Node' base class. This does not break the cache keys.
Diffstat (limited to 'src/buildstream/_project.py')
-rw-r--r--src/buildstream/_project.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/_project.py b/src/buildstream/_project.py
index cc57a16fa..72cf6306a 100644
--- a/src/buildstream/_project.py
+++ b/src/buildstream/_project.py
@@ -230,7 +230,7 @@ class Project():
# Anything that alters the build goes into the unique key
# (currently nothing here)
- self._cache_key = _cachekey.generate_key(_yaml.new_empty_node())
+ self._cache_key = _cachekey.generate_key({})
return self._cache_key