Closed howbazaar closed 10 months ago
Can you try with the wheels from https://github.com/libgit2/pygit2/actions/runs/4117199516 ? There we build and bundle the latest version of openssl (3.0.7)
Here there are wheels for all supported Python versions https://github.com/libgit2/pygit2/actions/runs/4122340875
@jdavid As reported here I am seeing this same issue for pygit2 1.12.0
ed25519 keys seems to not be working. How can I help you to get this solved?
@tvb You can build your own wheels, like this:
OPENSSL_VERSION=3.0.8 LIBSSH2_VERSION=1.10.0 LIBGIT2_VERSION=1.6.4 sh build.sh wheel bundle
Probably you will need to set AUDITWHEEL_PLAT
as well. The generated wheel will be found in the wheelhouse/
directory.
Let me know if you find a version of OpenSSL that works for you, maybe try with the latest in the 1.1.x series
(Pull the latest version of pygit2, I've done a small fix to build.sh
)
@jdavid In the meantime I got it working with ecdsa on 256 bit keys.
Just tested with 1.12.2
, which i think was just released, but I have the same issue with "Failed getting response"
I think we are going to explore building our own binaries to get around this
Tested with 1.12.2 again and read the error message properly.
Works fine on ubuntu 22.04.
Had issues with lambda/3.11 base container, but a yum update -y
in our Dockerfile
fixed that issue.
Opening #1143 as new issue as still fails with 1.11.1
Platform: linux x86_64 (ubuntu 20.04) Python: 3.9.12
Reproduction script: https://gist.github.com/howbazaar/b4e46806d0c5350623bf8d9ff49c6b4c
works with pygit2 v1.7.1 fails with v1.7.2, 1.9.1, 1.11.1
The script is a bit weird because it builds and runs the code the same way our production code does, and I was attempting to find a minimal reproduction of the problem.
Personally I had an older 4096 bit RSA SSH key, but newer users were using ed25519 type SSH keys as recommended by github's own docs.
I created some new keys:
And added them to my github profile.
Was using poetry to manage versions inside a local virtual env to easily switch between versions of pygit2.
Failure looks like:
ecdsa keys are fine
ldd for v1.11.1 of the pygit2 shared object file has
So it looks like it is still shipping with libssl and libssh2.