Skip to content

Consider Directory expansion #133

@tarilabs

Description

@tarilabs

to follow-up on #131

we could implement a feature flag so that:

  • by default passing a Directory as a parameter would throw error
  • "force" so keep existing behaviour
  • "expand" so that a directory is expanded in its constituent files

to have efficient layering for those edge cases.

Example, used in the build definitions as:

olot "${REMOVE_ORIGINALS_ARG[@]}" -m "$MODELCARD_PATH" "$TARGET_OCI" models/*

ref: https://github.com/konflux-ci/build-definitions/blob/3c7136732ac199914fc5fe78c0b037897e0b5a2c/task/modelcar-oci-ta/0.1/modelcar-oci-ta.yaml#L188

so the models/* is expanded to the model files, but also the 1st level directory.

With this feature, the directory contained in models/ would be more efficiently layered, by expanding on its constituent files.

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