Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[che-dev] devfile v2 projects and attributes

Hello,

Convention for a devfile stored in a repository is to not include projects entry.
It's because the factory resolver is adding on the fly the projects entry based on the current branch/repository location like a fork. (If I fork a repository and open the forked devfile.yaml I do want to have the forked repository imported and not the original one)

On the other hand, we may want to describe for a given project, the 'project roots' that we want (like for example adding one or two subfolders as being workspace root in the IDE) and we also want to attach some IDE configurations like vsCodeLaunch/vscodeTask and these settings fit in the free-form attributes section of projects.

So it seems that we've like conflict of interest between those two as we want to add settings specific to a project but also we do not want to add the full link to the project.

This is why I was wondering if we are able to have a placeholder entry in projects that would allow us to add some specific configuration but not match the final location of the project being cloned.
And the resolver would just override/complete the projects entry and not add a new one.

In devfile v1 we could have an empty location but with devfile v2 we have git/remotes and for remotes field "The remotes map which should be initialized in the git project. Must have at least one remote configured"
So I don't see how to use an empty remote/empty project there to match this use case ?





Back to the top