Skip to content

Release 32.1.1 does not autocomplete "config set build.options.outputType", accepts arbitrary values #20

@migrym

Description

@migrym

Corteca only supports three values for build.options.outputType: rootfs, oci and docker:

    options:
        # rootfs, produces a compressed root filesystem as the build output; 
        # oci, the output is an OCI image;
        # docker, for docker image output.
        outputType: rootfs

Corteca does not autocomplete the supported values for corteca config set build.options.outputType, and accepts arbitrary values both from the command line and in corteca.yaml, causing corteca build to fail:

oci-poc (main %) $ corteca config get build.options.outputType
rootfs
oci-poc (main %) $ corteca config set build.options.outputType foobar
oci-poc (main *%) $ corteca config get build.options.outputType
foobar
oci-poc (main *%) $ corteca build armv7l
[...]
Fatal error: Unknown image type: foobar

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions