erlef / rebar3_hex

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

Can not publish package because the following deps are not available in hex #51

Closed id closed 7 years ago

id commented 8 years ago

Hi guys.

Having troubles publishing current master of https://github.com/klarna/brod to hex:

$ cd brod
$ rebar3 hex publish
===> Verifying dependencies...
===> Can not publish package because the following deps are not available in hex: kafka_protocol, supervisor3

$ rebar3 version
rebar 3.1.1 on Erlang/OTP 18 Erts 7.2

$ rebar3 plugins upgrade rebar3_hex
===> No upgrade needed for rebar3_hex

$ rebar3 hex info kafka_protocol
kafka_protocol
  Releases: 0.3.1, 0.2.3
  Maintainers: Shi Zaiming, Ivan Dyachkov
  Licenses: Apache License 2.0
  Links:
    Github: https://github.com/klarna/kafka_protocol
Kafka protocol erlang library

$ rebar3 hex info supervisor3
supervisor3
  Releases: 1.0.1, 1.0.0
  Maintainers: Shi Zaiming, Ivan Dyachkov
  Licenses: MPL
  Links:
    Github: https://github.com/klarna/supervisor3
A copy of supervisor.erl from the R16B Erlang/OTP with modifications
id commented 8 years ago

Also did rm -rf ~/.cache/rebar3, rm -rf ~/.hex, didn't help.

tsloughter commented 8 years ago

Damn, ok, I'll look into this in a minute.

tsloughter commented 8 years ago

What does the rebar.lock file look like?

id commented 8 years ago
cat rebar.lock
[{<<"kafka_protocol">>,
  {git,"https://github.com/klarna/kafka_protocol.git",
       {ref,"72c72ac8a9970f053586fac1cb9ee090e0e4c90b"}},
  0},
 {<<"supervisor3">>,
  {git,"https://github.com/klarna/supervisor3.git",
       {ref,"9f7205ffeddcec11349ede11a6123100fb75e65d"}},
  0}].
id commented 8 years ago

That was it, worked after I removed rebar.lock.

yurrriq commented 7 years ago

I think this can be closed.