che icon indicating copy to clipboard operation
che copied to clipboard

devfile using `sparseCheckoutDir` in conjunction with a `branch` doesn't work right

Open edeandrea opened this issue 4 years ago • 4 comments

Describe the bug

I'm using the CodeReady Workspaces thats part of the Red Hat developer sandbox (https://workspaces.openshift.com). I have a devfile in my project with a projects section that looks like this:

projects:
  - name: rhoar-getting-started
    source:
      type: git
      location: https://github.com/openshift-katacoda/rhoar-getting-started.git
      branch: solution
      sparseCheckoutDir: spring/spring-db-access

When the project gets checked out, the UI and the tooling (running git branch) shows master, yet the source code thats checked out reflects the correct branch (the solution branch in my specific case).

Screen Shot 2021-07-20 at 11 53 25 AM

edeandrea avatar Jul 20 '21 16:07 edeandrea

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

che-bot avatar Jan 16 '22 00:01 che-bot

/remove-lifecycle stale

svor avatar Jan 21 '22 13:01 svor

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

che-bot avatar Jul 20 '22 00:07 che-bot

/remove-lifecycle stale

svor avatar Jul 20 '22 06:07 svor

i met a similar issue for a multi module maven project where each module is an example

ehsavoie avatar Jun 23 '23 08:06 ehsavoie

@edeandrea @ehsavoie Unfortunately, sparseCheckoutDir has been removed from the Devfile API: https://github.com/devfile/api/issues/128#issuecomment-692729769.

It probably makes sense to close this issue as such, unless there are other concerns/questions about this topic.

AObuchow avatar Jun 23 '23 18:06 AObuchow

i met a similar issue for a multi module maven project where each module is an example

If your issue does not involve spareCheckoutDir, please open a new issue :pray:

AObuchow avatar Jun 23 '23 18:06 AObuchow

FWIW, even though sparseCheckoutDir is no longer part of the Devfile API, it is currently being implemented as a project attribute. Relevant PR.

AObuchow avatar Jun 23 '23 21:06 AObuchow

Issues go stale after 180 days of inactivity. lifecycle/stale issues rot after an additional 7 days of inactivity and eventually close.

Mark the issue as fresh with /remove-lifecycle stale in a new comment.

If this issue is safe to close now please do so.

Moderators: Add lifecycle/frozen label to avoid stale mode.

che-bot avatar Dec 20 '23 00:12 che-bot