【问题标题】:Berkself won't resolve a cookbook on githubBerkself 不会解决 github 上的食谱
【发布时间】:2017-01-14 02:17:39
【问题描述】:

我已经建立了一本食谱,它又依赖于一个 github 托管的。

这是我的berksfile的开始

source "https://api.berkshelf.com"

cookbook 'r', github: 'stevendanna/cookbook-r'
cookbook 'apt'

[...]

但是在执行vagrant up 命令时,我得到了这样的结果:

The stdout and stderr are shown below:

    stdout: Resolving cookbook dependencies...
Fetching 'analytics' from source at cookbooks/analytics
Fetching cookbook index from https://api.berkshelf.com...

    stderr: Ignoring wdm-0.1.1 because its extensions are not built.  Try: gem pristine wdm --version 0.1.1
Unable to satisfy the following requirements:

- `r (>= 0.0.0)` required by `analytics-0.2.0`

看起来 'r' 食谱没有被 berkshelf 正确地从 github 中提取出来,尽管我在上面设置了 berksfile 上的 repo 时确实应该这样做。

我是否必须在其他地方设置显式路径或 URL 或其他位?

这是包含食谱的配置脚本:analytics-vagrant

(使用 Vagrant 1.8.7)

【问题讨论】:

    标签: git vagrant chef-infra berkshelf


    【解决方案1】:

    Berkshelf 文件不可传递。唯一被评估的 Berksfile 是您的顶级说明书,从不评估具有 github 覆盖的依赖说明书中的 Berksfile。您还需要在顶级说明书中复制 git 覆盖。

    这与 bundler/Gemfile/Gemfile.lock 的工作方式相同,不评估传递包。

    【讨论】:

      猜你喜欢
      • 2015-01-25
      • 1970-01-01
      • 1970-01-01
      • 2021-07-28
      • 1970-01-01
      • 1970-01-01
      • 2014-12-11
      • 2019-07-17
      • 1970-01-01
      相关资源
      最近更新 更多