【问题标题】:How do I install release build of sorbet?如何安装冰糕的发布版本?
【发布时间】:2019-07-05 09:13:41
【问题描述】:

我按照他们在 GitHub README 上的说明安装了 sorbet:

安装依赖项

brew install bazel autoconf coreutils parallel Clone this repository

git clone https://github.com/sorbet/sorbet.git cd sorbet Build Sorbet

bazel build //main:sorbet --config=dbg

但是当我运行它时,我得到了以下信息:

$ bazel-bin/main/sorbet -e "42 + 2"
???? Hey there! Heads up that this is not a release build of sorbet.
Release builds are faster and more well-supported by the Sorbet team.
Check out the README to learn how to build Sorbet in release mode.
To forcibly silence this error, either pass --silence-dev-message,
or set SORBET_SILENCE_DEV_MESSAGE=1 in your shell environment.

No errors! Great job.

我想安装发布版本,因为我想使用支持良好的 sorbet,所以我再次访问他们的 GitHub README 并查看以下内容:

--config=release-mac--config=release-linux 我们提供给用户的确切发布配置。

所以我运行这个:

bazel build //main:sorbet --config=dbg --config=release-mac

但它以这一行结束:

FAILED: Build did NOT complete successfully

我也试过这个:

bazel build //main:sorbet --config=release-mac

但它也以这一行结尾:

FAILED: Build did NOT complete successfully

我应该怎么做才能安装 Sorbet 的发布版本?

【问题讨论】:

    标签: sorbet


    【解决方案1】:

    Sorbet 存储库中的自述文件描述了如何编译 Sorbet,而不是如何安装现有版本。

    要安装现有版本,请按照https://sorbet.org/docs/adopting 的指南进行操作

    如果您坚持自己从源代码编译发布,为了帮助您,我们将需要更多构建日志,因为您没有包含说明具体问题的消息。

    现在,使用水晶球,我猜您正在尝试在不附带系统 C++ 头文件的 OS X Mojave 上编译 Sorbet,因此构建无法找到 math.hstdio.h。 Sorbet 自述文件包含有关如何在自述文件中安装标头的说明:https://github.com/sorbet/sorbet#common-compilation-errors

    【讨论】:

    • 我使用 ruby​​ 2.6.3 创建了一个新的 rails 项目,并将这两行添加到 Gemfile(gem 'sorbet', :group => :developmentgem 'sorbet-runtime'),然后运行 ​​bundle install,但我得到了 Could not find sorbet-static-0.4.4389-universal-darwin-14 in any of the sources。你知道为什么吗? @user537862
    • 你确定你使用的是公共 RubyGems,而不是一些内部镜像?
    • 我遇到了同样的问题,昨天使用公共 RubyGems,但今天它可以工作了。
    猜你喜欢
    • 2013-07-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-10-02
    • 1970-01-01
    • 2019-01-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多