score-spec / score-compose

Reference implementation for docker-compose target platform support
https://docs.score.dev/docs/score-implementation/score-compose/
Apache License 2.0
446 stars 42 forks source link

fix(generate): correct parsing of --build json #131

Closed astromechza closed 5 months ago

astromechza commented 5 months ago

See #130. This corrects the parsing of the --build json by using the compose yaml/json loader which pulls in all the extra unmarshalling magic for dynamic types that the json reader cannot cope with.

A test is added to check that this works as expected.

As a side effect, this also supports inline yaml.