erlef / rebar3_hex

Rebar3 Hex library
Apache License 2.0
101 stars 49 forks source link

Include requirements #37

Closed tsloughter closed 5 years ago

tsloughter commented 8 years ago

Check rebar.config to see if a non-strict version requirement is used and use that in the package instead of what is in the lock file. And if just the package name is in the rebar.config use ~> (lock version)

starbelly commented 5 years ago

@tsloughter I think this can be closed...

 ~/d/e/jb_test cat rebar.config                                                                                                                           Sun Apr 14 21:48:03 2019
{erl_opts, [debug_info]}.
{deps, [{elli, "~> 3.1"}]}.
 ~/d/e/jb_test rebar3 compile
===> Fetching hex_core ({pkg,<<"hex_core">>,<<"0.5.0">>})
===> Version cached at /Users/starbelly/.cache/rebar3/hex/hexpm/packages/hex_core-0.5.0.tar is up to date, reusing it
===> Compiling hex_core
===> Compiling rebar3_hex
===> Verifying dependencies...
===> Fetching elli ({pkg,<<"elli">>,<<"3.2.0">>})
===> Version cached at /Users/starbelly/.cache/rebar3/hex/hexpm/packages/elli-3.2.0.tar is up to date, reusing it
===> Compiling elli
===> Compiling jb_test