diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2018-01-04 12:28:58 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2018-01-04 12:30:12 +0000 |
commit | 3628cbbe0ec04e4f6e202d473a04a8fb3cf60840 (patch) | |
tree | 80cde7c589f48caf663ba43da8a70af5a625c0d6 /buildstream/element.py | |
parent | bb8f807bc6f5bcc6259bc06d6995b7f0bc2c6076 (diff) | |
download | buildstream-3628cbbe0ec04e4f6e202d473a04a8fb3cf60840.tar.gz |
Move utils._generate_key() into a new 'cachekey' module
This avoids a circular dependency between the 'utils' and '_yaml'
modules.
Diffstat (limited to 'buildstream/element.py')
-rw-r--r-- | buildstream/element.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/buildstream/element.py b/buildstream/element.py index ef5e9ea76..8c7fad71d 100644 --- a/buildstream/element.py +++ b/buildstream/element.py @@ -40,6 +40,7 @@ from . import Plugin, Consistency from ._project import BST_ARTIFACT_VERSION as BST_CORE_ARTIFACT_VERSION from . import SandboxFlags from . import utils +from . import _cachekey from . import _signals from . import _site from ._platform import Platform @@ -900,7 +901,7 @@ class Element(Plugin): context = self._get_context() project = self._get_project() - return utils._generate_key({ + return _cachekey.generate_key({ 'artifact-version': "{}.{}".format(BST_CORE_ARTIFACT_VERSION, self.BST_ARTIFACT_VERSION), 'context': context._get_cache_key(), |