Skip to content

Conversation

@fahedouch
Copy link
Contributor

@fahedouch fahedouch commented Aug 12, 2021

Hello,

Applying some docker-compose behavior to the Compose cli :

When an invalid file path is being passed as --env-file argument, Compose should returns an error (https://docs.docker.com/compose/environment-variables/#using-the---env-file--option)

When a directory is being passed as -f argument Compose should returns an error

Signed-off-by: fahed dorgaa fahed.dorgaa@gmail.com

@fahedouch fahedouch requested a review from ndeloof as a code owner August 12, 2021 14:31
@fahedouch fahedouch force-pushed the update-compose-env-var branch from e87db33 to eacbd54 Compare August 12, 2021 14:52
Signed-off-by: fahed dorgaa <fahed.dorgaa@gmail.com>
@ndeloof
Copy link
Collaborator

ndeloof commented Aug 26, 2021

Sounds good, but code need to distriguish use of the default env file (.env) and ignore error

Signed-off-by: fahed dorgaa <fahed.dorgaa@gmail.com>
@fahedouch
Copy link
Contributor Author

@ndeloof indeed the error is triggered only when o.EnvFile! = nil (not for default env file .env)

@ndeloof ndeloof merged commit c78dcff into compose-spec:master Aug 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants