compose-spec / compose-go

Reference library for parsing and loading Compose YAML files
https://compose-spec.io
Apache License 2.0
355 stars 112 forks source link

Fix GetWorkingDir to get the right working dir from config files #675

Open BergLucas opened 2 months ago

BergLucas commented 2 months ago

Fix https://github.com/docker/compose/issues/12054

Hi, I've tried to fix the bug mentioned above by using the true working directory if there is a configuration file in it, otherwise it behaves the same way as before.

I'm not an expert in golang so don't hesitate to make comments.

Have a nice day!