PTU5KAS/kas
Jan Kiszka 2077900b4e includehandler: Fix repo path detection for local includes
So far, repository paths for local includes were derived from the path
name of the config file containing the include, rather than using the
actual repository root as specified in the documentation. No one
complained so far, some layers simply adjusted their includes to this
inconsistency which was only discovered during refactorings.

Fix this issue by passing also the repository path along with the config
filename down the recursive _internal_include_handler calls. The
top-level repo path now needs to be retrieved before the creation of
IncludeHandler and passed to it then. This has the side effect of
enabling deviating top-level repo paths, a feature that will be used by
the upcoming changes for a .config.yaml file in KAS_WORK_DIR.

As there are existing users of the old behavior out there, fall back to
it if a local include cannot be found under the correct path and warn if
this succeeds. This allows smooth migration of layers to the right
pattern as they update their kas version.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
2021-08-19 10:10:14 +02:00
..
plugins kas: drop bitbakes "-k" from the default args 2021-01-19 18:14:59 +01:00
__init__.py __init__: Better support introspection 2018-12-07 09:56:09 +01:00
__main__.py Correct grammar, spelling and copyright year in files 2018-09-05 12:46:35 +02:00
__version__.py Release 2.5 2021-05-26 07:27:23 +02:00
config.py includehandler: Fix repo path detection for local includes 2021-08-19 10:10:14 +02:00
configschema.py Add build_system property to config file 2020-11-16 11:53:25 +01:00
context.py context: Add support for relative KAS_WORK/BUILD/REPO_REF_DIR paths 2021-08-18 12:43:09 +02:00
includehandler.py includehandler: Fix repo path detection for local includes 2021-08-19 10:10:14 +02:00
kas.py Account for removal of aynchio.Tasks.all_tasks 2020-11-13 08:53:33 +01:00
libcmds.py Add environment variable SSH_PRIVATE_KEY_FILE 2021-07-10 11:25:40 +02:00
libkas.py libkas: Gracefully handle empty repo set 2021-08-18 23:17:41 +02:00
repos.py Enable gerrit/gitlab/github refspecs 2021-07-19 07:57:32 +02:00