compose-go/paths
Nicolas De Loof 6584ea3cc2
paths: do not panic on mis-shaped values when resolving paths
With schema validation skipped, resolving the relative paths of a model
crashed on a build context or an extends file that is not a string, a bind
mount whose source is not a string, and a volume or its driver_opts that is
not a mapping. A context or extends file of another type is now an error, like
any other path; the other values are left as written for the decoding of the
model to report.

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
History 2026-10-23 14:36:28 +02:00
..
context.go paths: do not panic on mis-shaped values when resolving paths 2026-10-23 14:36:28 +02:00
extends.go paths: do not panic on mis-shaped values when resolving paths 2026-10-23 14:36:28 +02:00
home.go paths: leave ~user alone instead of reading it as ~/user 2026-10-23 10:10:26 +02:00
home_test.go paths: leave ~user alone instead of reading it as ~/user 2026-10-23 10:10:26 +02:00
resolve.go paths: do not panic on mis-shaped values when resolving paths 2026-10-23 14:36:28 +02:00
resolve_test.go paths: do not panic on mis-shaped values when resolving paths 2026-10-23 14:36:28 +02:00
unix.go paths: keep an empty path empty instead of resolving it to the working directory 2026-10-23 10:10:26 +02:00
volume_name_test.go paths: test Windows volume names and absolute paths on any OS 2026-10-22 16:34:04 +02:00
windows_path.go update IsWindowsAbs code and export func 2025-04-28 10:20:45 +02:00
windows_path_test.go update IsWindowsAbs code and export func 2025-04-28 10:20:45 +02:00