compose icon indicating copy to clipboard operation
compose copied to clipboard

[BUG] cli panic on bad env_file properties

Open mjpowersjr opened this issue 1 year ago • 1 comments

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

mjpowersjr avatar Apr 26 '24 12:04 mjpowersjr

Got something similar here, i guess, https://github.com/docker/compose/issues/11772

clementgineste avatar Apr 26 '24 12:04 clementgineste

Fixed by https://github.com/compose-spec/compose-go/pull/621

glours avatar May 31 '24 08:05 glours