-
Notifications
You must be signed in to change notification settings - Fork 561
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
Upgrade libgit2 to 1.3.0 #3962
Merged
Merged
Upgrade libgit2 to 1.3.0 #3962
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
a10083b
Upgrade libgit2 to 1.3.0
nalimilan a54f928
Delete libgit2-continue-zlib.patch
nalimilan 30b1d8e
Update libgit2-hostkey.patch
nalimilan b229cee
Update libgit2-hostkey.patch
nalimilan 99a1e63
Pin MbedTLS to 2.28
ViralBShah e235fa6
Update L/LibGit2/build_tarballs.jl
giordano 2e4276d
Update build_tarballs.jl
ViralBShah b1cb2eb
Update build_tarballs.jl
ViralBShah 38702d6
Update L/LibGit2/build_tarballs.jl
ViralBShah File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@StefanKarpinski This part of the patch seems to have been replaced by libgit2/libgit2@29fe5f6. I'm not sure whether it's perfectly equivalent though. x-ref #2419.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fun. I guess we need to make sure that the
certificate_callback
andssh_knownhost_check
stuff inLibGit2
still works with the new libgit2 version. The patch was required, IIRC, because the old version of libgit2 was doing several broken things:It's unclear how (or if) anyone was actually using SSH hostkey checking previously.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the first thing is still broken but the second thing got fixed but in an incompatible way because they stuck that
raw_type
field in there instead of just appending the hostkey data.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. So AFAIK I kept the patch for the first thing so it should be OK. For the second one, tests added by JuliaLang/julia#39324 cover it, right? At least they pass with libgit2 1.3 and this branch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think that tests the port part but it looks like it tests the hostkey part. I was testing by actually connecting to a host that I was proxying through to github.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. I've just done this, and it seems to work!
For the record, here's what I did to forward port 22 on my machine to github.com:
Then I had to go through my router as trying to connect from the same machine avoids the forwarding.
Then I installed a package via (after manually adding A.B.C.D to ~/.ssh/known_hosts with the signature for github.com):
One weird fact is that if I call
git clone ssh://git@A.B.C.D:32800/nalimilan/FreqTables.jl.git
, an entry for[A.B.C.D]:32800
is added to ~/.ssh/known_hosts, but that entry isn't used by]add ...
to work. I need to add the signature without the port. I guess that's expected since the same happens on Julia 1.6.Anything I missed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bump.