compose
compose copied to clipboard
[BUG] cli panic on bad env_file properties
Description
Admittedly it took me way to long to spot this problem in a docker-compose.yaml file :-)
The following will cause the docker compose cli to panic, and the error message does not give the user a hint as to what's wrong:
env_file:
- file: .env
required: true
changing the same snippet to the correct definition fixes the panic:
env_file:
- path: .env
required: true
Steps To Reproduce
No response
Compose Version
v2.26.1-desktop.1
Docker Environment
No response
Anything else?
No response
Got something similar here, i guess, https://github.com/docker/compose/issues/11772
Fixed by https://github.com/compose-spec/compose-go/pull/621