msys2 / setup-msys2

GitHub Action to setup MSYS2
https://github.com/marketplace/actions/setup-msys2
MIT License
285 stars 38 forks source link

webfactory/ssh-agent is not working with setup-msys2 #263

Open mojca opened 1 year ago

mojca commented 1 year ago

I described the problem in https://github.com/webfactory/ssh-agent/issues/149 and I'm not actually sure which action needs to be fixed, but it would certainly be helpful to collaborate to find a suitable solution.

The webfactory/ssh-agent action allows specifying a private SSH key to fetch dependencies via CMake's FetchContent functionality. It seems to work successfully on all major platforms: Linux, macOS and Windows, but I'm not sure how to make it work from within the msys2 shell.

eine commented 1 year ago

When using SSH (or git) on MSYS2, private keys are searched for at ~/.ssh/, which defaults to <path-to-msys2-installation-drive-or-path>/msys64/home/<user>/.ssh. Therefore, I guess that webfactory/ssh-agent needs to accept some option to put the private keys there, instead of somewhere else.