Skip to content
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

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

Closed
edeandrea opened this issue Jul 20, 2021 · 9 comments
Closed
Labels
area/git/dev-environment-config Issues and PRs related to the automatic setup of git within a cloud development environment area/plugins kind/bug Outline of a bug - must adhere to the bug report template. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. severity/P2 Has a minor but important impact to the usage or development of the system.

Comments

@edeandrea
Copy link

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 edeandrea added the kind/bug Outline of a bug - must adhere to the bug report template. label Jul 20, 2021
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Jul 20, 2021
@svor svor added area/git severity/P2 Has a minor but important impact to the usage or development of the system. area/plugins and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Jul 20, 2021
@che-bot
Copy link
Contributor

che-bot commented Jan 16, 2022

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 che-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 16, 2022
@svor
Copy link
Contributor

svor commented Jan 21, 2022

/remove-lifecycle stale

@che-bot che-bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 21, 2022
@che-bot
Copy link
Contributor

che-bot commented Jul 20, 2022

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 che-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 20, 2022
@svor
Copy link
Contributor

svor commented Jul 20, 2022

/remove-lifecycle stale

@che-bot che-bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 20, 2022
@l0rd l0rd added area/git/dev-environment-config Issues and PRs related to the automatic setup of git within a cloud development environment and removed area/git labels Jan 23, 2023
@ehsavoie
Copy link

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

@AObuchow
Copy link

@edeandrea @ehsavoie Unfortunately, sparseCheckoutDir has been removed from the Devfile API: devfile/api#128 (comment).

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

@AObuchow
Copy link

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 🙏

@AObuchow
Copy link

AObuchow commented Jun 23, 2023

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

@che-bot
Copy link
Contributor

che-bot commented Dec 20, 2023

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 che-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Dec 20, 2023
@che-bot che-bot closed this as completed Dec 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/git/dev-environment-config Issues and PRs related to the automatic setup of git within a cloud development environment area/plugins kind/bug Outline of a bug - must adhere to the bug report template. lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. severity/P2 Has a minor but important impact to the usage or development of the system.
Projects
None yet
Development

No branches or pull requests

7 participants