Duplicate directory specifying multiple projects in a devfile.
See original GitHub issueIs there a way with a multi-project devfile to not duplicate the root of a project already defined in source control?
Gitlab / github
devfile ( it’s a bit of a mess, but I’m trying different things)
projects:
- name: parent
source:
location: 'https://gitlab.example.com/User/project.git'
type: git
sparseCheckoutDir: /parent/
clonePath: projects
- name: config-service
source:
location: 'https://gitlab.example.com/User/project.git'
type: git
sparseCheckoutDir: /config-service/
clonePath: ''
- name: gateway-service
source:
location: 'https://gitlab.example.com/User/project.git'
type: git
sparseCheckoutDir: /gateway-service/
clonePath: projects
- name: discovery-service
source:
location: 'https://gitlab.example.com/User/project.git'
type: git
sparseCheckoutDir: /discovery-service*
Workspace RESULT: Duplicated project root directory when using sparseCheckoutDir to add a project in source control.
che version 7.6.0
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Adding projects - Devfile
This section describes how to add one or more projects to a devfile. Each starter project can contain either a git or zip...
Read more >Chapter 4. Authoring devfiles - Red Hat Customer Portal
Projects to clone. A devfiles is a YAML file that CodeReady Workspaces consumes and transforms into a cloud workspace composed of multiple containers....
Read more >Import a project from your laptop to an Eclipse Che workspace.
I've cloned it into $HOME/react-web-app folder. The application is a Nodejs example. Workflow. 1. Define an Eclipse Che workspace for my project (create...
Read more >Share Compose configurations between files and projects
To use multiple override files, or an override file with a different name, you can use the -f option to specify the list...
Read more >Discover Che 7: devfile - Eclipse Che Blog
In this case, we're using git so we specify the repository URL (there can be multiple URLs to clone in multiple projects).
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Would https://github.com/eclipse/che/issues/15347 work as a fix to that one? It looks like we want to clone only once here, but display specific subfolders
I’ve updated area to
plugins
as it’s related to Che Theia Workspace Plugin cc @ericwill