You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
webhook-sensor-sensor-9qlwv-78b95697cf-dpcqb main 2023-07-04T14:01:49.805703295+03:00 2023-07-04T11:01:49.805Z ERROR argo-events.sensor sensors/listene
r.go:362 Failed to execute a trigger {"sensorName": "webhook-sensor", "error": "failed to fetch artifact, failed after retries: failed to fetch. err
: empty git-upload-pack given", "triggerName": "workflow-trigger-with-git-source", "triggeredBy": ["gitea-dep"], "triggeredByEvents": ["35393837613432372d34373
6652d343564622d623163342d393964366438353535383038"]}
Expected behavior
Expected to work. For example if instead of ref: refs/heads/feature/argo-workflow
I use branch: feature/argo-workflow it works. It clones the git repo, and submits the workflow without issues.
Environment (please complete the following information):
Describe the bug
Using GitArtifact as a k8s trigger source fails when using ref
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Expected to work. For example if instead of
ref: refs/heads/feature/argo-workflow
I use
branch: feature/argo-workflow
it works. It clones the git repo, and submits the workflow without issues.Environment (please complete the following information):
Additional context
Related issues:
go-git: empty git-upload-pack given errors since v5.4.0 #328
related issue:
go-git: Pull: error: empty git-upload-pack given
fluxcd solution: upgrade to unreleased v5.8.0
5242551eae/go.mod (L7)
metal-robot solution: Downgrade to v5.3.0
metal-stack/metal-robot#55
Attempted Solution
Upgrading to the same un-rleased v5.8.0 as fluxcd, fixes the issue with the fetch command.
However, afterwards it tries to pull but it fails with error
https://github.com/argoproj/argo-events/blob/46e2d01f397515778f83779430f9012b00a03c0b/sensors/artifacts/git.go#L180-L194
The comment, correctly notes that is not necessary to pull.
Removing this block, we can successfully clone a repo when using
ref: refs/heads/feature/argo-workflow
or when usingbranch: feature/argo-workflow
.Steps to successfully fix:
git checkout v1.8.0
go mod tidy
(this step updates a bunch of other go dependencies as well
Message from the maintainers:
If you wish to see this enhancement implemented please add a 👍 reaction to this issue! We often sort issues this way to know what to prioritize.
The text was updated successfully, but these errors were encountered: