summaryrefslogtreecommitdiff
path: root/src/buildstream/_context.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/_context.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/_context.py')
-rw-r--r--src/buildstream/_context.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildstream/_context.py b/src/buildstream/_context.py
index 2bebc4845..363ec3a30 100644
--- a/src/buildstream/_context.py
+++ b/src/buildstream/_context.py
@@ -444,7 +444,7 @@ class Context():
if self._cache_key is None:
# Anything that alters the build goes into the unique key
- self._cache_key = _cachekey.generate_key(_yaml.new_empty_node())
+ self._cache_key = _cachekey.generate_key({})
return self._cache_key