compose-go/transform
Nicolas De Loof 6ac9323ede Revert the Logger option: warnings go through the global logrus logger again
Routing the warnings to a logging.Logger given by the caller cannot be
complete without new variants of the exported functions that warn (dotenv,
types.Project, paths...), and doubling the exported API for it is a bigger
cost than the benefit. The warnings are written to the standard logrus
logger again, as they were before the Logger option.

This reverts, in order:
- 0a2be5d feat: route more warnings to the configured Logger
- 85a97c0 cli: add WithLogger to route project discovery and loading warnings
- 0481a82 loader: add Options.Logger to route loading warnings
- 414395c template: let callers route the unset variable warning to a logger

and e24266a template: WithoutLogging also silences nested substitutions,
which only made sense with the Logger option: template.go goes back to its
state before 414395c, and the fuzz test of the template package to its state
before e24266a. The version conformance test now reads the warning from the
standard logrus logger instead of Options.Logger.

The type casts of the interpolation stay built for each load, as they have been
while the Logger option existed, rather than shared again through a package
level map that a caller could alter for every other load.

None of these commits belongs to a release.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
History 2026-10-25 14:08:20 +01:00
..
build.go Only ignore parsing errors when used with no-interpolate 2024-04-05 12:14:28 +02:00
build_test.go Only ignore parsing errors when used with no-interpolate 2024-04-05 12:14:28 +02:00
canonical.go Revert the Logger option: warnings go through the global logrus logger again 2026-10-25 14:08:20 +01:00
canonical_test.go transform: reject lists of non-strings instead of panicking 2026-10-23 16:00:08 +02:00
defaults.go transform: apply the container defaults to pre_start hooks 2026-10-25 09:20:52 +01:00
defaults_test.go use go.yaml.in/yaml/v4 2025-11-12 14:33:23 +01:00
dependson.go transform: reject lists of non-strings instead of panicking 2026-10-23 16:00:08 +02:00
device.go long syntax for device mapping 2024-08-21 15:23:16 +02:00
devices.go bump golangci-lint 2025-02-21 15:50:46 +01:00
envfile.go Only ignore parsing errors when used with no-interpolate 2024-04-05 12:14:28 +02:00
envfile_test.go use go.yaml.in/yaml/v4 2025-11-12 14:33:23 +01:00
extends.go Only ignore parsing errors when used with no-interpolate 2024-04-05 12:14:28 +02:00
external.go Revert the Logger option: warnings go through the global logrus logger again 2026-10-25 14:08:20 +01:00
external_test.go fix: reject non-mapping entries under networks and models 2026-09-18 14:48:26 +02:00
gpus.go support gpus: all alias 2025-01-23 16:20:22 +01:00
include.go Only ignore parsing errors when used with no-interpolate 2024-04-05 12:14:28 +02:00
mapping.go transform: reject lists of non-strings instead of panicking 2026-10-23 16:00:08 +02:00
ports.go lint: enable perfsprint 2026-10-22 17:10:59 +02:00
ports_test.go set default TCP protocol 2024-07-02 10:59:08 +02:00
schedule.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
schedule_test.go feat: introduce the jobs top-level element 2026-09-10 17:44:16 +02:00
secrets.go Only ignore parsing errors when used with no-interpolate 2024-04-05 12:14:28 +02:00
services.go transform: reject lists of non-strings instead of panicking 2026-10-23 16:00:08 +02:00
ssh.go fix(transform): honor ignoreParseError in ssh and ulimits parsers (#928) 2026-09-10 15:00:34 +02:00
ssh_test.go fix(transform): honor ignoreParseError in ssh and ulimits parsers (#928) 2026-09-10 15:00:34 +02:00
ulimits.go fix(transform): honor ignoreParseError in ssh and ulimits parsers (#928) 2026-09-10 15:00:34 +02:00
ulimits_test.go fix(transform): honor ignoreParseError in ssh and ulimits parsers (#928) 2026-09-10 15:00:34 +02:00
volume.go transform: read the mode of a tmpfs volume as the Docker CLI does 2026-10-25 11:38:08 +01:00