-
Notifications
You must be signed in to change notification settings - Fork 65
Dependent Projects #1082
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Introducing The fundamental problem for me is that it creates a false sense o hierarchy. Another big problem I see is ignoring devfile from the dependent projects. Yes, it will make implementation more straightforward, but as a user, I would find that surprising, and I would consider that a bug. I'm not convinced that this is something that should be in Devfile. The devfile should stay scoped to a single project. The decision to remove If we want to allow users to work with multiple projects at the same time, it should be tooling that makes that possible, we don't need anything special in devfile spec. For example, in VSCode I can add multiple folders to the workspace. If we can import two Devfile projects into the workspace in Che I would consider that a far more elegant solution than this. |
@kadel What is the rational for removing Most of the enterprise development teams that I have worked with are on projects with multiple repos that comprise the "Application". Having the ability to automate the cloning of multiple repositories into a workspace greatly improves the onboarding experience for team members. I have a really lame app example here: https://github.com/eclipse-che-demo-app/che-demo-app |
After discussing this issue with @l0rd I understand the rationale behind this change. |
Since this being worked on by Eclipse Che Team, I will remove from Devfile Project tracking. |
Which area this feature is related to?
/area api
Which functionality do you think we should add?
Introduce a new field,
dependentProjects
in the Devfile spec.Why is this needed? Is your feature request related to a problem?
The devfile is supposed to be versioned in the application git repository and there is no need to specify the project (repo and revision) as that's implicit.
To support multi-project workspaces we want to introduce a new field,
dependentProjects
in the Devfile spec. That would allow cloning repositories other than the one where the devfile is located.Detailed description:
The sample
The
.devfile.yaml
in the backend git repository:This is the devfile of the backend service and it references the frontend repo using the
dependentProjects
field. As a result the source code of the frontend will be included in the cloud development environment:The resulting folders
All git repositories get cloned in
$PROJECTS_ROOT
. The current project source code, with the devfile defining the dev environment, is cloned in$PROJECT_SOURCE
.Commands can target a dependent project
The devfile in my backend git repository can include commands to build/run/debug the frontend too:
The text was updated successfully, but these errors were encountered: