-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Update go-git dependency to get performance fixes #7248
Comments
Unfortunately the new commitgraph packages are still missing after the update (the plumbing/format/commitgraph and plumbing/object/commitgraph directories). |
Oh that's odd they should be there - try make vendor and see if they appear and were missed in the commit. |
I cannot see them on GitHub web (for Gitea repo) so they must have been missed somewhere along the way. |
Ok they definitely should be there - but they're missing because git doesn't complain about new untracked directories. So our make vendor test will miss that they weren't added. Could you open an issue and either myself or someone else will be able to fix the missing vendor files. (What happens when you run make vendor?) |
So is this a bug of |
It seems |
Nope I suspect the files get added when we do make vendor, but that we missed them when creating the pr and our make test-vendor case misses the fact that they're not added. I suspect these commit graph functions are not used anywhere in go git at present so it doesn't cause compilation issues that they're not present. |
@zeripath I have executed |
So just checking quickly it doesn't appear to be fixed using make vendor. Damn. |
@filipnavara I forced the vendoring of package by using _ import of commitgraph packages. You can cherry-pick this commit ac4ebac from the PR #7276 to have the needed deps vendored. Let me know if you need more deps. |
@sapk Thanks! That's exactly what I needed. |
@filipnavara @sapk So I think that #7276 is unnecessary. |
Yes @lunny it doesn't need to be merged (and it shouldn't). I just did it to verify that it only vendor referenced folder and it could ease the process of vendor for @filipnavara by just cherry-picking the commit (and removing _ import). |
This is an interesting finding for me - it basically means that's whilst developing there may be more useful functionality in our already vendored packages that we could use but don't know that is there - I did wonder why go-git appeared so sparse when I was looking for functionality. I'll have to have another look at it. |
Go-git 4.12 (https://github.com/src-d/go-git/releases/tag/v4.12.0) was released now so Gitea should pick it up for the performance improvements.
The text was updated successfully, but these errors were encountered: