-
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
Comments
Avoids worktree contains unstaged changes error Signed-off-by: David Gamba <[email protected]>
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:
I'm not sure why this isn't working for you, but I know the |
go-git/go-git#511 (comment) |
@ben-wangz I use symlinks extensively. I will be able to generate the workflow reproducer at the end of the week. I had to swap projects for a while. I apologize for the delay in following up. |
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: