question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Duplicate directory specifying multiple projects in a devfile.

See original GitHub issue

Is there a way with a multi-project devfile to not duplicate the root of a project already defined in source control?

Gitlab / github image

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. image

che version 7.6.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sunixcommented, Aug 11, 2020

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

1reaction
azatsarynnyycommented, Aug 3, 2020

I’ve updated area to plugins as it’s related to Che Theia Workspace Plugin cc @ericwill

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found