我试图在Windows 10中设置一个Pharo8映像,使用我手工克隆的gives,但是repo给出了一个奇怪的错误。以下代码在linux上运行良好,但在Windows中失败(我已经尝试过Git Bash或msys2-mingw 64)。它克隆了我的回购程序,在子目录中下载了一个法老8 image+vm,将它复制到一个新的映像中,在该映像中添加了一个Iceberg,并尝试安装一个元程序包:
$ git clone git@github.com:powerlang/powerlang.git powerlang
$ cd powerlang/bootstrap
$ curl https://get.pharo.org/64/80+vm | bash
$ ./pharo Pharo.image save bootstrap
$ ./pharo bootstrap.image eval --save "(IceRepositoryCreator new location: '..' asFileReference; createRepository) register"
$ ./pharo bootstrap.image metacello install tonel://./src BaselineOfPowerlang
MetacelloNotification: Fetched -> BaselineOfPowerlang-tonel.1 --- tonel://C:\dev\powerlang\bootstrap\src --- tonel://C:\dev\powerlang\bootstrap\src
MetacelloNotification: Loaded -> BaselineOfPowerlang-tonel.1 --- tonel://C:\dev\powerlang\bootstrap\src --- tonel://C:\dev\powerlang\bootstrap\src
MetacelloNotification: Loading baseline of BaselineOfPowerlang...
3. using HTTPS instead SSH (Just use an url in the form HTTPS://etc.git). I will try to clone the HTTPS variant.
3. using HTTPS instead SSH (Just use an url in the form HTTPS://etc.git). I will try to clone the HTTPS variant.
3. using HTTPS instead SSH (Just use an url in the form HTTPS://etc.git). I will try to clone the HTTPS variant.
3. using HTTPS instead SSH (Just use an url in the form HTTPS://etc.git). I will try to clone the HTTPS variant.
3. using HTTPS instead SSH (Just use an url in the form HTTPS://etc.git). I will try to clone the HTTPS variant.
[infinite loop]我做错了什么吗?我怎样才能解决这个问题?
发布于 2021-12-03 03:44:28
问题似乎与道路有关。
我最终可以通过手动告诉Iceberg .ssh文件在哪里(它应该已经知道:/在标准目录中)来绕过它们。改为下面的一行解决了这个问题:
$ ./pharo bootstrap.image eval --save "IceCredentialsProvider useCustomSsh: true. IceCredentialsProvider sshCredentials publicKey: '`cygpath -w ~/.ssh/id_rsa.pub`'; privateKey: '`cygpath -w ~/.ssh/id_rsa`'. (IceRepositoryCreator new location: '..' asFileReference; createRepository) register"冰山不支持将~用于ssh路径,也不支持使用/c/Users/xxx表示法,因此我们将其传递给/c/Users/xxx样式的路径(cygwin -w ~/.ssh/id_rsa被转换为C:\Users\xxx\.ssh\id_rsa)。
https://stackoverflow.com/questions/67767811
复制相似问题