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
{{ message }}
This repository was archived by the owner on Jun 3, 2025. It is now read-only.
After investigation, I found this is caused by an outdated version of github.com/go-git/go-git/v5 in Kaniko's dependencies. When testing with the latest version of go-git, the issue is resolved.
Suggested Solution:
Please update the github.com/go-git/go-git/v5 dependency to the latest version to resolve this compatibility issue with Gitee.
Additional Context:
This appears to be related to how go-git handles the git protocol packets from Gitee's servers, which was improved in later versions.
When using Kaniko to pull code from Gitee (https://gitee.com/), I encounter the following error:
Error: error resolving source context: error decoding upload-pack response: invalid pkt-len foundAfter investigation, I found this is caused by an outdated version of github.com/go-git/go-git/v5 in Kaniko's dependencies. When testing with the latest version of go-git, the issue is resolved.
Reproduction Steps:
Configure Kaniko to clone a repository from Gitee (e.g., https://gitee.com/yszs/sip-service.git)
Observe the "invalid pkt-len found" error
Test Case:
I verified the fix by testing with the latest go-git version:
Suggested Solution:
Please update the github.com/go-git/go-git/v5 dependency to the latest version to resolve this compatibility issue with Gitee.
Additional Context:
This appears to be related to how go-git handles the git protocol packets from Gitee's servers, which was improved in later versions.