open-component-model / ocm

Open Component Model (Software Bill of Delivery) Toolset
https://ocm.software
Apache License 2.0
34 stars 23 forks source link

Fix ocm issue 179, block in config yields invalid yaml #734

Closed dee0sap closed 5 months ago

dee0sap commented 6 months ago

Description

Fixes https://github.com/open-component-model/ocm-project/issues/179

What type of PR is this? (check all applicable)

Related Tickets & Documents

Screenshots

Added tests?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration

Added to documentation?

Checklist:

morri-son commented 6 months ago

@mandelsoft , can you please takle a look at this proposal?

Skarlso commented 5 months ago

@dee0sap All you have to do is indent the value that you wish to substitute correctly.

We marshal values before doing anything this PR now fixes that in the sense that we don't marshal primitive values. That marshalling broke the syntax of the value that we are trying to insert. So we leave values alone. But we do marshal complex types like struct, pointer, maps, etc.

dee0sap commented 5 months ago

I think this PR is ready for whatever review process you guys have.

Skarlso commented 5 months ago

If anything breaks because of this, we'll iterate on a solution. ;)