Closed eproxus closed 2 years ago
The lock will be unrelated. It'll need a fix in rebar3.
The hex plugin simply depends on certain rebar3 steps (providers) and they are called without any part of the hex plugin running before them.
But the publish
should definitely abort if no apps are found. I'm guessing it is just checking if [App]
is the match and forgetting about []
.
@tsloughter Do you want me to open an issues on Rebar 3?
Yea. There might already been one, this is something I've wanted to fix for a while.
I think rebar3 always locks dependencies, even when there are none found.. running it outside of a project just makes teh whole deps scan return "no deps found or declared" (since there's no rebar.config file) and a lockfile is still created.
If you run
rebar3 hex publish
in a directory that is not a Rebar/Erlang application, it will create an emptyrebar.lock
file:The initial prompt is probably also wrong since there are no applications to select from in the first place.