-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in src/cli.cr:1: while requiring "./hpr/cli" #10
Comments
这个项目是用 Crystal 0.27.0 编写,因为是开发中的语言每个版本都会有 breaking changes,建议安装 0.27.0 进行编译。 |
|
-lssl 是因为 openssl 配置错误。
理论上就是 hpr [command],难道我文档写错了?
如果你 clone 的是 cocoapods 的 master repo 的话正常情况是功夫网的原因造成 clone github 巨大的库超时了,建议你找个国内镜像的 cocoapods master repo 仓库 clone 下来后在替换 remote url 再进行拉取这样速度就会缩短很多,或者你不替换也行这取决于镜像库的同步速度。 |
[warn] kq_init: detected broken kqueue; not using.: Undefined error: 0
.[KeyError] Missing hash key: "hpr"
Hpr::Git::Repo#remote<String>:Hpr::Git::Repo::Remote
Hpr::Cli::Create@Hpr::Git::Helper#repository_info<String>:Hash(String, String)
Hpr::Cli#run!:(Bool | IO+ | Int32 | Nil)
__crystal_main
main
|
这个是编译后二进制文件会放在 bin 目录只能使用使用,如果你用 docker 的话就是直接 hpr ...
我来跟进下,可能是 bug
镜像是使用的 |
为啥不管怎么update,gitlab仓库都是空的呢 |
你看看 hpr 项目目录 repositories 目录,找找里面镜像的仓库没有,如果有进去看看有没有 packed-refs 文件,有的话基本上说明 clone 已经完毕了, |
packed-refs文件是存在的,commit logs也存在,但是镜像仓库并没有push成功,gitlab的里还是只有空仓库,我试了只包含两个文件的github仓库也是如此 |
麻烦能复制下 logs/sidekiq.log 日志吗 |
sidekiq.log |
CocoaPods-Specs、facebook-facebook-objc-sdk 在 gitlab 上都是空仓库么? 后面几个我看 create 的时候都报错了,看似是 repositories/mirrors/xxx-xxx 目录没有创建成功,可能我还得看下 logs/hpr.log 😢 |
|
Crystal 0.29 在 Docker 编译总会报错 crystal-lang/crystal#7993 我计划用 ruby 重写,需要耗费几天的时间。 |
有空可以试试 ruby 版本 https://github.com/icyleaf/hpr/tree/ruby-version 刚开始写还未支持 Docker,配置文件由 json 变为了 yaml,配置都是一样的,命令行功能未支持但有 HTTP APIs 兼容之前的文档同时还多加了一些 APIs,具体可以看 |
好的好的,辛苦大佬了,ruby我能看懂一点点,我试试去。 |
这是 ruby 版本的进度:#11 基本可用了 |
尝试了源码编译,也尝试了Docker安装 但是都会报这个错误。在github搜到crystal在旧版会有这个问题,但是我是通过homebrew安装的0.29最新版呀。
相关log:
The text was updated successfully, but these errors were encountered: