compose-go/loader
Nicolas De Loof 3423c00629 loader: tell a consistency error is invalid for every check
Several checks of checkConsistency returned their error bare, so
errors.Is(err, errdefs.ErrInvalid) held for most inconsistencies of a
project but not for an additional context on an unknown or non-buildable
service, a healthcheck test with an unknown keyword, a network_mode on an
unknown or disabled service, a negative scale or replicas count, or a target
mounted twice. They now wrap ErrInvalid like the others, which appends
"invalid compose project" to their message, and the misspelt "mutualy" of
the dockerfile and dockerfile_inline conflict is fixed.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
History 2026-11-16 17:38:27 +01:00
..
testdata loader: carry deploy.restart_policy into restart and let it win over restart 2026-11-16 17:12:57 +01:00
tests loader: tell a consistency error is invalid for every check 2026-11-16 17:38:27 +01:00
aliases.go loader: reuse deepClone instead of duplicating it as cloneYaml 2026-09-29 14:50:45 +02:00
aliases_test.go loader: apply !reset and !override to the attribute an extension stands for 2026-09-29 14:50:45 +02:00
environment.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
example1.env allow '.' (dot) in environment variable name 2022-06-07 18:15:29 +02:00
example1.label removed required from LabelFile 2024-12-02 10:55:21 +01:00
example2.env Import docker/docker/cli 2017-04-17 17:40:59 -04:00
example2.label removed required from LabelFile 2024-12-02 10:55:21 +01:00
extends.go loader: reject a non-string extends file instead of panicking 2026-10-23 16:00:08 +02:00
extends_test.go loader: reject a non-string extends file instead of panicking 2026-10-23 16:00:08 +02:00
fix.go re-implemented ResetProcessor to apply on map[string]any 2023-10-27 10:33:42 +02:00
golden_test.go lint: enable forbidigo to require t.Context() in tests 2026-10-22 17:10:59 +02:00
include.go fix(loader): resolve the env_file and project_directory of a nested include against its declaring file 2026-11-13 10:40:28 +01:00
include_paths_test.go fix(loader): resolve the env_file and project_directory of a nested include against its declaring file 2026-11-13 10:40:28 +01:00
include_test.go loader: allow include into a section left empty 2026-10-23 16:00:08 +02:00
interpolate.go Revert the Logger option: warnings go through the global logrus logger again 2026-10-25 14:08:20 +01:00
load_config_files_test.go lint: enable forbidigo to require t.Context() in tests 2026-10-22 17:10:59 +02:00
loader.go Revert the Logger option: warnings go through the global logrus logger again 2026-10-25 14:08:20 +01:00
loader_fuzz_test.go types: read the text of a file mode with the syntax of the Docker CLI 2026-10-25 11:59:25 +01:00
loader_test.go Revert the Logger option: warnings go through the global logrus logger again 2026-10-25 14:08:20 +01:00
loader_windows_test.go gofumpt 2025-02-21 15:50:46 +01:00
loader_yaml_test.go fix(loader): put a file on the include stack once, not once per document 2026-10-23 10:03:58 +02:00
mapstructure.go Revert the Logger option: warnings go through the global logrus logger again 2026-10-25 14:08:20 +01:00
mapstructure_test.go loader: do not panic on services that are not mappings 2026-10-23 16:00:08 +02:00
memoize_test.go fix(loader): resolve the extends of a job against the jobs of the file 2026-10-23 10:03:58 +02:00
merge_reset_test.go lint: enable forbidigo to require t.Context() in tests 2026-10-22 17:10:59 +02:00
normalize.go loader: carry deploy.restart_policy into restart and let it win over restart 2026-11-16 17:12:57 +01:00
normalize_test.go loader: report a mis-shaped model in Normalize instead of panicking 2026-10-23 16:00:08 +02:00
omitEmpty.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
omitEmpty_test.go fix: preserve empty slices in OmitEmpty for schema validation 2026-05-18 15:53:12 +02:00
override_test.go lint: enable forbidigo to require t.Context() in tests 2026-10-22 17:10:59 +02:00
paths.go bump golangci-lint 2025-02-21 15:50:46 +01:00
paths_test.go lint: enable forbidigo to require t.Context() in tests 2026-10-22 17:10:59 +02:00
reset.go loader: report an anchor merging itself as a cycle 2026-10-23 16:00:08 +02:00
reset_test.go loader: report an anchor merging itself as a cycle 2026-10-23 16:00:08 +02:00
restart.go loader: carry deploy.restart_policy into restart and let it win over restart 2026-11-16 17:12:57 +01:00
unsupported_attributes.go loader: detect unsupported compose-file attributes (#927) 2026-09-08 12:30:50 +02:00
unsupported_attributes_test.go schema: declare the options of storage_opt 2026-11-16 15:25:43 +01:00
validate.go loader: tell a consistency error is invalid for every check 2026-11-16 17:38:27 +01:00
validate_test.go loader: tell a consistency error is invalid for every check 2026-11-16 17:38:27 +01:00
with-version-struct_test.go refactor(types): extract ContainerSpec and WorkloadSpec from ServiceConfig 2026-09-10 17:44:16 +02:00