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
448 stars 42 forks source link

fix: resolve file source relative to the score file #96

Closed astromechza closed 7 months ago

astromechza commented 7 months ago

The score specification intends that the container file elements that have a source path are resolved relative to the source of the score file and not just relative to the working directory. This ensures that score-compose generate sub-component/score.yaml works as expected.

This PR fixes this by tracking the source file info in the state object and using this when resolving the source file.