Open gastaldi opened 3 months ago
@gastaldi see this reference for spring native compilation. I believe this is applicable to sshd as well right? https://docs.spring.io/spring-cloud-config/reference/server/aot-and-native-image-support.html Is this a workaround or can this be. solved in the project?
If the intention is to depend on this library, then yes, this may be a potential solution
What happened with this?
@erik-wramner nothing by me. Would love to solve enabling sshd in native compiled Quarkus apps but don't know where to start. Any pointers @gastaldi ?
I'll try to submit a PR once I reproduce it in a test
@gastaldi Can the related issues reproducer be of any assistance? https://github.com/quarkiverse/quarkus-jgit/issues/121#issuecomment-2037899769
@appiepollo14 maybe, can you confirm it is reproducible using Quarkus 3.11.3?
@gastaldi The reproducer mixes different changes. Namely your draft pr https://github.com/quarkiverse/quarkus-jgit/issues/122 I will do some refactoring to removes such variables from the reproducer and report back on this issue.
@gastaldi Updatet the reproducer to the latest Quarkus release. Still depending on the jgit 999 version to use the sshd implemention. When executing quarkus build --native
the error will occur.
p.s. the code is not able to succesfully do a git checkout because of authentication. Did not manage to fix this in time.
Not sure how feasible it would be, but Quarkus uses modern Java versions (17 and 21) that support EDDSA without external dependencies. If we could get Apache's SSH library to use that instead or inject changes to that effect we would be able to drop the problematic dependency.
We went for another library, so unfortunately I won't have time to help.
While building a native image using this extension, I get the following error: