panamax icon indicating copy to clipboard operation
panamax copied to clipboard

Not working over SSH

Open mainrs opened this issue 2 years ago • 3 comments

I usually set net.git-fetch-with-cli=true inside .cargo/config.toml. However, this does not work with panamax. Taking a look at the documentation reveals that CARGO_NET_GIT_FETCH_WITH_CLI can also be used. But that does not work for panamax as well.

mainrs avatar Aug 19 '22 16:08 mainrs

That makes sense, as Panamax only exposes an HTTP(S) server for interacting with git, rather than SSH.

I'm unfortunately not experienced with integrating SSH with git, so I'm not sure how to do that within Panamax. Perhaps using the thrussh library would be useful, but I'm not sure where to go from there.

k3d3 avatar Aug 22 '22 16:08 k3d3

Do you rely on external commands within panamax? Or do you use dedicated libraries to interact with git and cargo? The former can probably be solved by passing down environment variables for example.

mainrs avatar Aug 22 '22 18:08 mainrs

I believe git is the only external dependency, and that's just for serving: https://github.com/panamax-rs/panamax/blob/master/src/serve.rs#L294

Basically Panamax acts as a CGI gateway to git http-backend.

k3d3 avatar Aug 22 '22 18:08 k3d3

Hey, are you still having this issue @mainrs ?

k3d3 avatar Feb 04 '23 01:02 k3d3

I'm going to close this issue for now. Feel free to reopen it if it's still an issue for you.

k3d3 avatar Feb 25 '23 13:02 k3d3