compose-go/types
Nicolas De Loof 8190ecd2b3
types: reject a non-numeric ulimit limit instead of panicking
With neither schema validation nor interpolation (which casts the value), a
ulimit whose soft or hard limit is not a number crashed the loader on an
unchecked type assertion. It now fails with an error naming the attribute.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
History 2026-10-23 14:36:28 +02:00
..
fixtures Fix interpolation priorities 2025-03-31 15:42:33 +02:00
build.go introduce no-cache-filter 2025-11-05 14:43:16 +01:00
bytes.go types: parse byte values strictly instead of delegating to go-units 2026-10-22 19:24:52 +02:00
bytes_test.go types: parse byte values strictly instead of delegating to go-units 2026-10-22 19:24:52 +02:00
command.go types: reject a non-string command entry instead of panicking 2026-10-23 14:36:27 +02:00
config.go introduce support for models 2025-06-30 17:36:31 +02:00
config_test.go refactor(types): extract ContainerSpec and WorkloadSpec from ServiceConfig 2026-09-10 17:44:16 +02:00
container_spec_attributes.gen.go feat: add the umask service attribute 2026-10-21 08:06:30 +02:00
cpus.go seiralise NanoCPUs as string 2024-10-14 11:11:56 +02:00
derived.gen.go feat: add the umask service attribute 2026-10-21 08:06:30 +02:00
develop.go make x-initialSync part of the spec as initial_sync attribute 2025-09-17 18:43:43 +02:00
device.go prefer canonical transform vs DecodeMapStructure 2024-10-04 14:55:57 +02:00
duration.go introduce pull policy to refresh image every xx 2025-02-25 16:15:07 +01:00
envfile.go create_host_path must not be omitted when set to false 2025-11-10 17:24:37 +01:00
healthcheck.go types: reject a non-string healthcheck test entry instead of panicking 2026-10-23 14:36:28 +02:00
hooks.go feat: pre_start hooks carry the full container specification 2026-09-10 17:44:16 +02:00
hostList.go Support multiple values for extra_hosts 2024-09-03 16:37:33 +02:00
hostList_test.go Support multiple values for extra_hosts 2024-09-03 16:37:33 +02:00
jobs.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
labels.go use go 1.23 2025-02-21 15:50:46 +01:00
labels_test.go label can be set with empty value 2024-01-19 13:52:55 +01:00
mapping.go fix: prevent panic on empty key 2025-07-15 07:49:20 +02:00
models.go introduce mode_var for model binding 2025-06-30 20:48:39 +02:00
options.go provider.options can be an array 2025-05-12 10:02:01 +02:00
project.go types: resolve the labels of pre_start hooks 2026-10-12 17:49:11 +02:00
project_test.go fix: type=image volume source is always a docker image reference 2026-09-16 13:42:07 +02:00
services.go Add getters for services that have defined build, extends, depends_on, capabilities, gpu/tpu 2024-02-07 15:17:58 +01:00
ssh.go fix TestLoadSSH* 2023-10-27 10:33:42 +02:00
stringOrList.go avoid panic in stringOrList DecodeMapstructure func 2024-04-29 14:04:34 +02:00
types.go types: reject a non-numeric ulimit limit instead of panicking 2026-10-23 14:36:28 +02:00
types_fuzz_test.go types: reject a non-numeric ulimit limit instead of panicking 2026-10-23 14:36:28 +02:00
types_test.go refactor(types): extract ContainerSpec and WorkloadSpec from ServiceConfig 2026-09-10 17:44:16 +02:00