1

I have a rebar.config that contains this deps entry:

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

An when I run "rebar compile" I get this:

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

I believe this is because I'm behind a firewall and my only way to access the Internet is through a http proxy. Is there a way to setup rebar to use a http proxy?

danron
  • 189
  • 8

1 Answers1

1

It seems that rebar uses git for fetching the dependencies when the deps tuple containts {git, "http://..."}. So I solved this by adding this in .gitconfig:

[http]
    proxy = http://myproxy-url.com:8080
Burhan Khalid
  • 169,990
  • 18
  • 245
  • 284
danron
  • 189
  • 8