How to use `shards install` with SSH or gitclone?

问题描述 投票:0回答:1

我无法连接到 https://github.com/..。 当我使用 git 时,我可以像这样使用 ssh 或 gitclone:

git config --global url."https://gitclone.com/github.com".insteadOf https://github.com

这样,我就可以在任何地方轻松使用

git clone
了。 但是,对于分片,它会从 Yaml 配置文件中读取依赖项。 我可以在解决单个依赖时将
github: ...
更改为
git: ...
,但它的依赖仍然无法访问。

请帮帮我!有什么解决办法吗?

crystal-lang
1个回答
0
投票

您是否尝试过那个配置示例?

shards
只是调用
git
程序。您在
shards
之外使用的任何配置也应该适用于它的 git 操作。

© www.soinside.com 2019 - 2024. All rights reserved.