Skip to content

Update Compose Spec to v2 - #68

Merged
ncucinotta merged 1 commit into
mainfrom
update_compose_spec
Aug 7, 2026
Merged

Update Compose Spec to v2#68
ncucinotta merged 1 commit into
mainfrom
update_compose_spec

Conversation

@ncucinotta

Copy link
Copy Markdown
Contributor

To support the latest Composefile syntax features. More specifically, I'm interested in supporting env_files being optional:

env_file:
  - path: ...
    required: ...

which currently crashes with:

Error: failed to setup new daemon: failed to parse docker compose file: validating /etc/docker/compose/docker-compose.yml: services.my_service.env_file must be a string
Usage:
  blazar run [flags]
Flags:
  -h, --help   help for run
Global Flags:
      --config string   config toml file

V2 has been chosen since the spec update I required first landed in v2.0.0-beta.2. Finally, instead of refactoring the entire codebase adding Context support to the functions working with Composefiles, I opted to use context.Background(), which was also the default fallback when first adding Context support upstream (compose-spec/compose-go@ad9be94).

To support the latest Composefile syntax features
@ncucinotta
ncucinotta requested a review from qezz June 29, 2026 13:39

@qezz qezz left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for looking into it

1/5: maybe we can throw in a test for the env_file, just a simple one

@ncucinotta
ncucinotta merged commit 6cec52b into main Aug 7, 2026
2 checks passed
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