allow optional env_file for include top level
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 38.2k
- Forks
- 5.8k
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 55
Description
Description
in #3560 optional env files are allowed at a service level https://docs.docker.com/compose/how-tos/environment-variables/set-environment-variables/#additional-information
however this env file https://docs.docker.com/reference/compose-file/include/#env_file doesnt support being optional would it be possible to also make include level env_files optional using the same syntax?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named in the issue. Start by locating the include-level env_file handling and compare it with the existing service-level optional env_file behavior. Done means include-level env_file entries accept the same optional syntax and preserve current behavior for required files, with tests covering both cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker-compose, go
- Domain
- devops
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100