![]() If this is not currently possible, then I think this is a functional issue in addition to the documentation issue. The above issue report assumes it is possible to set SSH keys in the git vended by Windows CMake. If you are shelling out to the system git then you can simply say that the user should set ssh keys in their system git, but if on some platforms you are installing your own version, more explanation or a link to other resources is needed. There should be a discoverable line in the FetchContent documentation explaining what git/ssh it uses, how to configure that git/ssh, and ideally (because this is necessary for github, a very commonly used site) a brief mention of how to set ssh keys. Without this information, I cannot access the needed git repo using FetchContent. If I look in the FetchContent documentation, and scrub the entire page for mentions of "git", "ssh", "download" or "FetchContent_", I find no mention of where the ssh configuration comes from. ![]() But I don't know where CMake's ssh stores its public keys. I don't have any Windows git installed, so CMake must be vending its own git, which implies(?) it is probably vending its own ssh. I don't know where to put the SSH keys that Windows CMake could find them. The solution would be equally clear: Register my github ssh public key with Windows git. My SSH keys are stored in WSL ~/.ssh, but Windows CMake probably doesn't have any idea where to find those. Doing this requires an ssh public key associated with a real github account. CMakeLists is connecting to github using the git+ssh protocol. The meaning of the error message is clear. git/config to modify, can first set it for just one command like git clone or git submodule add: git -c core.sshCommand'ssh -i privatekeyfile' clone host:repo.git Once the repo exists you can set the option permanently in the. Please make sure you have the correct access rights and the repository exists. When cloning a new repo, where there is not yet any. Set up git config: git config -global user.name 'w3docs' git config -global user.email w3docs. fatal: Could not read from remote repository. The next step is adding your key to your account via the website. Performing download step (git clone) for 'holoplaycoresdk-populate' Cloning into 'holoplaycoresdk-src'.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |