Repository navigation
Releases: compose-spec/compose-go
Release list
v2.16.2
What's Changed
- types: resolve the environment of pre_start hooks by @ndeloof in #938
- types: resolve the labels of pre_start hooks by @glours in #939
- chore(deps): bump actions/download-artifact from 8.0.1 to 8.0.2 by @dependabot[bot] in #941
- chore(deps): bump actions/upload-artifact from 7.0.1 to 7.0.2 by @dependabot[bot] in #940
- types: add use_service_name_alias to service networks by @glours in #943
- feat: add the umask service attribute by @ndeloof in #942
Full Changelog: v2.16.1...v2.16.2
v2.16.1
What's Changed
Full Changelog: v2.16.0...v2.16.1
v2.16.0
⚠️ Breaking change (Go API)
types.ServiceConfig now embeds types.ContainerSpec and types.WorkloadSpec, shared with the new jobs element and pre_start init containers. Field access is unchanged (svc.Image), but struct literals must now set moved fields through the embedded structs, and code walking ServiceConfig with reflection will see these two embedded structs instead of a flat list of fields:
types.ServiceConfig{Name: "web", ContainerSpec: types.ContainerSpec{Image: "nginx"}}ServiceConfig.PreStart is now a []types.PreStartHook (was []types.ServiceHook), which embeds a full ContainerSpec; Image and PerReplica are no longer fields of ServiceHook.
The order of keys in the YAML and JSON produced for a service also changes (service-level keys first, then container-level, then workload-level ones). The content is the same, but expected files compared as text need to be regenerated.
What's Changed
- loader: detect unsupported compose-file attributes by @glours in #927
- fix(transform): honor ignoreParseError in ssh and ulimits parsers by @glours in #928
- Jobs by @ndeloof in #866
- fix: type=image volume source is always a docker image reference by @ndeloof in #929
- fix: an explicit working dir must survive a remote resource loader by @ndeloof in #930
- fix: reject non-mapping entries under networks and models by @glours in #932
- fix: allow disabled services as build additional contexts by @Shubham-Padkonde in #931
- loader: promote x-* extensions adopted by the specification by @ndeloof in #935
New Contributors
- @Shubham-Padkonde made their first contribution in #931
Full Changelog: v2.15.0...v2.16.0
v2.15.0
What's Changed
- Bump actions/stale from 10.4.0 to 11.0.0 by @dependabot[bot] in #905
- fix(override): merge ulimits into the base value by @vsaraikin in #907
- loader: skip re-merge of identical resources imported through diamond includes by @davireis in #906
- add @glours as codeowner by @glours in #916
- Update README.md by @ndeloof in #917
- fix(override): prevent panic on non-string list elements by @glours in #915
- introduce Project.WithoutUnresolvedOptionalDependencies by @ndeloof in #922
- fix(loader): guard versionWarning global against data races by @glours in #919
- fix(types): avoid data race in WithServicesTransform by @glours in #920
- replace uses of testify and update logrus to reduce indirect dependencies by @thaJeztah in #921
- override: sequence merge ignores strictly-identical duplicate entries by @ndeloof in #924
- fix(types): reject unrecognized pull_policy values instead of defaulting by @glours in #923
- fix: ignore default .env probe on permission denied by @ndeloof in #925
- test: cover short/long ulimit syntax combinations in override merge by @ndeloof in #912
- tests: codify the testing contract by @ndeloof in #914
- fix: merge attributes of repeated variable occurrences in ExtractVariables by @ndeloof in #911
- cli: validate COMPOSE_FILE entries point to actual compose files by @ndeloof in #909
New Contributors
- @vsaraikin made their first contribution in #907
- @davireis made their first contribution in #906
Full Changelog: v2.14.0...v2.15.0
v2.14.0
What's Changed
- Bump golangci/golangci-lint-action from 9.2.1 to 9.3.0 by @dependabot[bot] in #891
- Bump actions/setup-go from 6.5.0 to 7.0.0 by @dependabot[bot] in #897
- Bump actions/stale from 10.3.0 to 10.4.0 by @dependabot[bot] in #893
- Resolve dependent images (pre_start hooks, type: image volumes) in WithImagesResolved by @ndeloof in #894
- Memoize image digest resolution across a WithImagesResolved call by @ndeloof in #899
- Bump actions/checkout from 7.0.0 to 7.0.1 by @dependabot[bot] in #901
- Add SkipResolveLabels option to skip label_file resolution by @glours in #902
- fix(interpolation): report all errors in a deterministic order by @glours in #903
- Memoize include and extends.file loads within a single Load call by @glours in #904
Full Changelog: v2.13.0...v2.14.0
v2.13.0
What's Changed
- feat: add pre_start lifecycle hook for init containers by @glours in #885
- fix(reset): preserve path escaping in cycle detection by @glours in #888
- Bump actions/setup-go from 6.4.0 to 6.5.0 by @dependabot[bot] in #889
- perf(schema): compile compose-spec schema once by @ndeloof in #890
Full Changelog: v2.12.1...v2.13.0
v2.12.1
What's Changed
- loader: add WithSelectedServices and WithoutUnnecessaryResources options by @ndeloof in #875
- Bump actions/stale from 10.2.0 to 10.3.0 by @dependabot[bot] in #876
- Bump golangci/golangci-lint-action from 9.2.0 to 9.2.1 by @dependabot[bot] in #877
- Bump actions/upload-artifact from 7.0.0 to 7.0.1 by @dependabot[bot] in #862
- feat(types): add IPAMConfig.Options field by @ndeloof in #880
- Bump actions/checkout from 6.0.2 to 7.0.0 by @dependabot[bot] in #887
- fix(reset): substitute alias target under merge key by @glours in #878
- loader: expand test coverage and document selection ordering by @glours in #879
Full Changelog: v2.11.0...v2.12.1
v2.11.0
What's Changed
- fix: add UnmarshalJSON and UnmarshalYAML to UnitBytes by @Venkatesh1505 in #867
- bump JSON Schema to draft 2020-12 by @ndeloof in #864
- fix: preserve empty slices in OmitEmpty for schema validation by @glours in #873
New Contributors
- @Venkatesh1505 made their first contribution in #867
Full Changelog: v2.10.2...v2.11.0
v2.10.2
What's Changed
- Bump yaml/v4 v4.0.0-rc.4 by @ndeloof in #849
- replace tests based on a huge "full" example and use tests dedicated to each attribute by @ndeloof in #855
- migrate tests to attribute-specific test files by @ndeloof in #857
- Pin GitHub Actions to commit SHA by @glours in #858
- Bump actions/setup-go from 6.3.0 to 6.4.0 by @dependabot[bot] in #859
- Fix: Process includes before extends for proper attribute inheritance by @infraAnchor in #853
New Contributors
- @infraAnchor made their first contribution in #853
Full Changelog: v2.10.1...v2.10.2
v2.10.1
What's Changed
- Bump actions/download-artifact from 6 to 7 by @dependabot[bot] in #845
- Bump actions/upload-artifact from 5 to 6 by @dependabot[bot] in #844
- Fix create_host_path default value is true by @ndeloof in #846
- fix: avoid eager default interpolation by @seekskyworld in #847
New Contributors
- @seekskyworld made their first contribution in #847
Full Changelog: v2.10.0...v2.10.1