Skip to content

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

@apostasie

Description

@apostasie

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 - containerd/nerdctl#3111)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions