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
clone doesn't work with aws codecommit credentials (reference delta not found) #5185
Comments
We actually made some improvements in this area recently. Can you please try this image: |
Thanks for the quick reply. |
Closed via #1926 |
It seems that is not a stable solution for AWS codecommit. My first test was success but later I tried others several repositories and for some it works, for others it doesn't. It seems to be a go-git problem not something specific of portainer |
Would you be able to share some details around what is and what isn't working for what type of repos, as well as the error messages? |
Sorry for the late reply, The problem seems to be this old go-git bug. |
Just for your information |
This issue has been marked as stale as it has not had recent activity, it will be closed if no further activity occurs in the next 7 days. If you believe that it has been incorrectly labelled as stale, leave a comment and the label will be removed. |
the fix in go-git should be ready soon. |
The fix was merged in go-git, it would be nice if new version of portainer will contain this fix on go-git |
Once a new version of go-git will be released we'll be able to update our dependency. |
@bassofed The latest released version of go-git is v5.4.2 ATM (June 2021), which doesn't contain the merged fix (Jan 2022). Can you please let us know when the fix is officially released, then we can update the reference? Thanks. |
I'm not a member of go-git's staff/community (actually I'm not even a go developer) so I don't know their release plan. The fix is merged into the main branch of the project so I can just wait and hope they will release the new version as soon as possible but in any case if I catch any news I will let you know. |
This issue has been marked as stale as it has not had recent activity, it will be closed if no further activity occurs in the next 7 days. If you believe that it has been incorrectly labelled as stale, leave a comment and the label will be removed. |
Since no further activity has appeared on this issue it will be closed. If you believe that it has been incorrectly closed, leave a comment mentioning |
Hi, Can you please be so kind to check if there are any news ? Thank you |
Hi @mirceaadam, I just had a quick check and the last released version of go-git is still v5.4.2 (June 2021). The patch mentioned above is not yet released. Once it's released, we will update our dependencies and the fix will be included. |
Bug description
git clone returns "reference delta not found" when using an AWS codecommit repository with https credentials
Portainer Logs
Steps to reproduce the issue:
Technical details:
Additional context
I'm totally new to GO so I'm not able to deeply debug the code but, since the error involed git, I tried to look inside api/git/git.go
I was able to reproduce the error using this code
output:
If I change the 'gitOption' definition to:
(so I only uncommented the 'Depth' param)
The clone works.
I tried with a GitHub repository and the clone works with both implementations: with and without 'Depth' definition.
I see from the source code that a default '1' value for 'Depth' should be set by default but from the behaviour I can see it seems that it's not working
The text was updated successfully, but these errors were encountered: