compose-go icon indicating copy to clipboard operation
compose-go copied to clipboard

WithOsEnv assumes wrongly that os.Environ() returns only strings containing an equal sign

Open apostasie opened this issue 1 year ago • 0 comments

https://github.com/compose-spec/compose-go/blob/main/cli/options.go#L240

This will call GetAsEqualsMap which will throw with an index out of bound in case a string does not contain an equal sign.

(we did hit that with a broken test in nerdctl - https://github.com/containerd/nerdctl/pull/3111)

apostasie avatar Jun 18 '24 06:06 apostasie