5b3e238128
This patch adds a new plugin 'dump' which resolves all kas config includes and combines them in a single file. The format of the output file can either be JSON or YAML. In case of YAML, the generated config fulfills the kas-config schema and can be used as input to kas again. In addition, the generated files can be used by external tools to analyse the dependencies and versions of the project. While the generated configuration is semantically identical to the input config, we do not guarantee binary compatibility as especially YAML provides multiple ways to serialize strings and null values. Not giving this guarantee makes it easier to evolve and maintain the plugin. The plugin itself extends the checkout plugin, as referenced repos have to be checked-out first to resolve cross-repo references. This also requires, that the declared refspec of all referenced repos can actually be found and checked out. Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> |
||
---|---|---|
.. | ||
plugins | ||
__init__.py | ||
__main__.py | ||
__version__.py | ||
config.py | ||
configschema.py | ||
context.py | ||
includehandler.py | ||
kas.py | ||
libcmds.py | ||
libkas.py | ||
repos.py | ||
schema-kas.json |