PTU5KAS/kas
Felix Moessbauer e9032bc278 kas-container: track repo dir when using menu cmd
When using the kas menu command, we need to track the repository
location outside of the kas container as well. This is required to
prepare the environment for a later kas-container build, as the repo
path inside the container is different from the outside one. For that,
the location of KAS_REPO_DIR is passed via an env-var into the container.
There, this value is picked up by the menu plugin and written to the
.config.yaml file as `_source_host_dir`. When running kas-container build,
we check if the .config.yaml file contains this node and set the
KAS_REPO_DIR accordingly. The schema is extended accordingly.

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
[Jan: rework _source_dir_host extraction to make it usable for menu as well]
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
2023-05-30 13:29:12 +02:00
..
plugins kas-container: track repo dir when using menu cmd 2023-05-30 13:29:12 +02:00
__init__.py __init__: Better support introspection 2018-12-07 09:56:09 +01:00
__main__.py Drop unnecessary shebang lines 2021-08-30 21:56:49 +02:00
__version__.py add support to override refspec of repos 2023-04-23 14:04:51 +02:00
config.py menu plugin: track root repo dir 2023-05-30 11:07:53 +02:00
configschema.py yml: Move json schema from python dict to standalone json file 2021-10-05 10:28:24 +02:00
context.py forward build-concurrency related env vars 2022-10-19 11:02:17 +02:00
includehandler.py kas-container: track repo dir when using menu cmd 2023-05-30 13:29:12 +02:00
kas.py fix: collect exceptions on task errors 2023-05-19 06:36:31 +02:00
kasusererror.py refactor: port all sys.exit over to kas exceptions 2023-05-05 21:56:32 +02:00
libcmds.py refactor: port all sys.exit over to kas exceptions 2023-05-05 21:56:32 +02:00
libkas.py fix: collect exceptions on task errors 2023-05-19 06:36:31 +02:00
repos.py repos: restore error handling of patch apply 2023-05-19 06:49:53 +02:00
schema-kas.json kas-container: track repo dir when using menu cmd 2023-05-30 13:29:12 +02:00