Skip to content

The clonePath of a project should be created if does not exist #1735

@michael-valdron

Description

@michael-valdron

/kind enhancement

Which area is this feature related to?

/area library

Which functionality do you think we should add?

Why is this needed? Is your feature request related to a problem?

If a clonePath set to a directory path which does not exist, the operation should create this directory path. This is generally expected by a git clone operation.

Detailed description:

Currently the clonePath set directory under dev tools expects that this directory exists, however most who work with git clone expect that it will create the specified clonePath. Therefore it would preferred that all devfile adopted dev tools treated this as such.

Describe the solution you'd like

Under devfile library, we should implement the creation of the specified clonePath during the cloning process of the project directory if that directory does not exist.

Describe alternatives you've considered

The workaround for this feature is to create a command that creates the non-existent directory before the project cloning.

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/libraryCommon devfile library for interacting with devfileskind/enhancementNew feature or request

    Projects

    Status

    Refinement

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions