diff options
Diffstat (limited to 'buildstream')
-rw-r--r-- | buildstream/_loader/loader.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/buildstream/_loader/loader.py b/buildstream/_loader/loader.py index 8553bc6dd..1b27d9d55 100644 --- a/buildstream/_loader/loader.py +++ b/buildstream/_loader/loader.py @@ -28,7 +28,6 @@ from .. import Consistency from .. import _yaml from ..element import Element from .._profile import Topics, profile_start, profile_end -from .._platform import Platform from .._includes import Includes from .types import Symbol, Dependency @@ -518,8 +517,7 @@ class Loader(): raise LoadError(LoadErrorReason.INVALID_DATA, "{}: Expected junction but element kind is {}".format(filename, meta_element.kind)) - platform = Platform.get_platform() - element = Element._new_from_meta(meta_element, platform.artifactcache) + element = Element._new_from_meta(meta_element, self._context.artifactcache) element._preflight() sources = list(element.sources()) |