diff options
author | James Ennis <james.ennis@codethink.co.uk> | 2019-08-13 17:07:57 +0100 |
---|---|---|
committer | James Ennis <james.ennis@codethink.co.uk> | 2019-08-19 12:14:49 +0100 |
commit | 20a636d3fb0422c54acd5783200288dbeecb09cf (patch) | |
tree | aff302f44f0fdab71e5842469ec92ff0b9a7a379 /src/buildstream/_artifact.py | |
parent | 5af343359b90dd5a77fbd0fda00e0e1f34ad6ff7 (diff) | |
download | buildstream-20a636d3fb0422c54acd5783200288dbeecb09cf.tar.gz |
artifact.proto: Add the project name to the build dependency information
We also need to store the project name of dependencies in
the proto in order to reconstruct the graph.
This also means that we must include the project name of the
dependencies in the cache key, otherwise the proto and the
cache keys may fall out of sync.
Diffstat (limited to 'src/buildstream/_artifact.py')
-rw-r--r-- | src/buildstream/_artifact.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/buildstream/_artifact.py b/src/buildstream/_artifact.py index ff5bae4a1..05d025427 100644 --- a/src/buildstream/_artifact.py +++ b/src/buildstream/_artifact.py @@ -170,6 +170,7 @@ class Artifact(): # store build dependencies for e in element.dependencies(Scope.BUILD): new_build = artifact.build_deps.add() + new_build.project_name = e.project_name new_build.element_name = e.name new_build.cache_key = e._get_cache_key() new_build.was_workspaced = bool(e._get_workspace()) |