I’ve been working with a local registry on a Windows computer for a while. After an update, I receive the following error:
(Environment) pkg> add TrueAndErrorModels
Resolving package versions...
Cloning [260ba6b7-9af7-473a-b238-1a1a0638f266] TrueAndErrorModels from git@github.com:itsdfish/TrueAndErrorModels.jl.git
ERROR: failed to clone from git@github.com:itsdfish/TrueAndErrorModels.jl.git, error: GitError(Code:ERROR, Class:SSH, failed to set hostkey preference: The requested method(s) are not currently supported)
I’m not sure if its related to the update, but I am unsure how to resolve the issue. Any help would be appreciated.
It seems like the issue is that its cloning via git@github.com:itsdfish/TrueAndErrorModels.jl.git rather the https. I switched it from https a while back because it stopped working. I’m not sure why the behavior has changed.
I don’t think I’ve understood the situation exactly, but
- The choice between the git and https protocols primarily depends on which URL is in the registry.
- If you intend to use the git protocol and have unexpected authorization problems, try setting the environment variable
JULIA_PKG_USE_CLI_GIT=true
.
Thank you for the reply. To be honest, I don’t quite understand the situation. I started with using GitHub - itsdfish/TrueAndErrorModels.jl. When that stopped working for an unknown reason, I switched to git@github.com:itsdfish/TrueAndErrorModels.jl.git, which worked for about a year until I received the error above. I switched back to the http procol and now it works. I’ll see if I can trace it back to a change in JULIA_PKG_USE_CLI_GIT. Thanks for the hint!