gpt4 book ai didi

pharo - Windows 中的 Iceberg/Pharo8 有什么问题?

转载 作者:行者123 更新时间:2023-12-05 06:00:16 25 4
gpt4 key购买 nike

我正在尝试在 Windows 10 中设置 Pharo8 图像,使用我手动克隆的 git 存储库,但是 pharo 给出了一个奇怪的错误。以下代码在 linux 上运行良好,但在 Windows 上运行失败(我已经尝试过 Git Bash 或 msys2-mingw64)。它克隆我的存储库,在子目录中下载一个 Pharo 8 图像 + 虚拟机,将它复制到一个新图像,并在其中添加一个 Iceberg 存储库并尝试安装一个 metacello 包:

$ 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]

我做错了什么吗?我该如何解决这个问题?

最佳答案

看来问题与路径有关。

我最终可以通过手动告诉 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"

Iceberg 不支持将 ~ 用于 ssh 路径,也不支持 /c/Users/xxx 符号,因此我们将其传递为 Windows 风格的路径(cygwin -w ~/.ssh/id_rsa 被转换为 C:\Users\xxx\.ssh\id_rsa)。

关于pharo - Windows 中的 Iceberg/Pharo8 有什么问题?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67767811/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com