【问题标题】:Rebar dependencies via http proxy通过 http 代理的 Rebar 依赖项
【发布时间】:2012-08-16 15:39:57
【问题描述】:

我有一个包含这个 deps 条目的 rebar.config:

{cowboy, ".*", {git, "http://github.com/extend/cowboy.git", {branch, "master"}}}

当我运行“rebar compile”时,我得到了这个:

Dependency not available: cowboy-.* ({git, "http://github.com/extend/cowboy.git", {branch,"master"}})

我相信这是因为我在防火墙后面,而我访问 Internet 的唯一方法是通过 http 代理。有没有办法设置钢筋以使用 http 代理?

【问题讨论】:

    标签: proxy erlang rebar


    【解决方案1】:

    当 deps 元组包含 {git, "http://..."} 时,rebar 似乎使用 git 来获取依赖项。所以我通过在.gitconfig 中添加这个来解决这个问题:

    [http]
        proxy = http://myproxy-url.com:8080
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2013-02-08
      • 1970-01-01
      • 1970-01-01
      • 2015-06-22
      • 1970-01-01
      • 2014-09-18
      • 2011-10-25
      相关资源
      最近更新 更多