Feature: force protocol when getting dependencies #158

wants to merge 4 commits into

2 participants


Added because of not always being able to use certain protocols (mainly git) from corporate intranet. And dirtying dependencies by editing their configuration files is well, dirty.

To force ssh, http or https use force_protocol=Protocol.

In effect

                    rebar get-deps force_protocol=https

This looks fine, but can you add some eunits to test the regexes are behaving?


Also, why is this better than simply configuring git like this:

[url "ssh://git@github.com/"]
  insteadOf = git://github.com/
  insteadOf = https://github.com/
  insteadOf = http://github.com/

If, for example, I wanted to default to the ssh protocol on github?



It's not really; I did'nt know of the insteadOf option when writiing this.

So; Im closing this PR.

Thanks for replying :)

@dawik dawik closed this Mar 14, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment