add plugin to dump flattened config
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>
This commit is contained in:
committed by
Jan Kiszka
parent
9bb1af5ecd
commit
5b3e238128
@@ -89,6 +89,11 @@ typically provides a single command.
|
||||
|
||||
.. automodule:: kas.plugins.checkout
|
||||
|
||||
``dump`` plugin
|
||||
~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
.. automodule:: kas.plugins.dump
|
||||
|
||||
``for-all-repos`` plugin
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
|
Reference in New Issue
Block a user