This is an automated email from the ASF dual-hosted git repository.
tvb pushed a commit to branch tristan/debug-cache-keys
in repository https://gitbox.apache.org/repos/asf/buildstream.git
The following commit(s) were added to refs/heads/tristan/debug-cache-keys by
this push:
new 9712129c1 PONY
9712129c1 is described below
commit 9712129c19fe3871b3015a38a142a34dfa150633
Author: Tristan van Berkom <[email protected]>
AuthorDate: Sat Dec 3 16:33:31 2022 +0900
PONY
---
src/buildstream/element.py | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/buildstream/element.py b/src/buildstream/element.py
index 1a97308e6..7a3f06c7c 100644
--- a/src/buildstream/element.py
+++ b/src/buildstream/element.py
@@ -2855,8 +2855,17 @@ class Element(Plugin):
# Collect the composited element configuration and
# ask the element to configure itself.
self.__config = self.__extract_config(load_element)
+
+ # XXX
+ import sys
+ if "build-commands" in self.__config:
+ sys.stderr.write("\n\nYAML build-commands:
'{}'\n".format(self.__config.get_str_list("build-commands")))
+
self.__variables.expand(self.__config)
+ if "build-commands" in self.__config:
+ sys.stderr.write("\n\nVARS SUBSTITUTED build-commands:
'{}'\n".format(self.__config.get_str_list("build-commands")))
+
self._configure(self.__config)
# Extract Sandbox config