-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
artifact build failed to load: failed to checkout "xxx": worktree contains unstaged changes #14141
Open
4 tasks done
Labels
Comments
DavidGamba
added a commit
to DavidGamba/argo-workflows
that referenced
this issue
Feb 3, 2025
Avoids worktree contains unstaged changes error Signed-off-by: David Gamba <[email protected]>
DavidGamba
added a commit
to DavidGamba/argo-workflows
that referenced
this issue
Feb 3, 2025
Avoids worktree contains unstaged changes error Signed-off-by: David Gamba <[email protected]>
|
Thanks for the report! I tried running the reproducer, and it works fine for me:
The |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Pre-requisites
:latest
image tag (i.e.quay.io/argoproj/workflow-controller:latest
) and can confirm the issue still exists on:latest
. If not, I have explained why, in detail, in my description below.What happened? What did you expect to happen?
When using the following git artifact configuration:
I get the following error:
artifact build failed to load: failed to checkout "xxx": worktree contains unstaged changes
After following the logic to this line: https://github.com/argoproj/argo-workflows/blob/release-3.6/workflow/artifacts/git/git.go#L167
I found that enabling a force checkout fixes my problem:
And removing the force checkout reproduces the problem.
I don't see any reason why Force checkout can't be the default and I am willing to submit the PR if you are OK with it.
Logs from init container:
Version(s)
v3.6.2
Paste a minimal workflow that reproduces the issue. We must be able to run the workflow; don't enter a workflow that uses private images.
See description
Logs from the workflow controller
Logs from in your workflow's wait container
The text was updated successfully, but these errors were encountered: