Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions