couchbeam icon indicating copy to clipboard operation
couchbeam copied to clipboard

Hex release of 1.4.2 broken (for Elixir, at least)

Open amuino opened this issue 8 years ago • 1 comments

When trying to use couchbeam as an elixir dependency fetched from Hex, I get an error compiling it. Changing the depedency to point to the github repos build ok.

This is the error I get:

elixir/couchdb_experiments  > mix deps.compile
===> Rebar3 detected a lock file from a newer version. It will be loaded in compatibility mode, but important information may be missing or lost. It is recommended to upgrade Rebar3.
===> Rebar3 detected a lock file from a newer version. It will be loaded in compatibility mode, but important information may be missing or lost. It is recommended to upgrade Rebar3.
===> Rebar3 detected a lock file from a newer version. It will be loaded in compatibility mode, but important information may be missing or lost. It is recommended to upgrade Rebar3.
===> Compiling couchbeam
===> Compiling /Users/amuino/dev/learn/elixir/couchdb_experiments/deps/couchbeam/src/couchbeam_util.erl failed
/Users/amuino/dev/learn/elixir/couchdb_experiments/deps/couchbeam/src/couchbeam_util.erl:8: can't find include lib "hackney/include/hackney.hrl"
/Users/amuino/dev/learn/elixir/couchdb_experiments/deps/couchbeam/src/couchbeam_util.erl:9: can't find include lib "hackney/include/hackney_lib.hrl"

/Users/amuino/dev/learn/elixir/couchdb_experiments/deps/couchbeam/src/couchbeam_util.erl:86: record hackney_url undefined
/Users/amuino/dev/learn/elixir/couchdb_experiments/deps/couchbeam/src/couchbeam_util.erl:88: variable 'QS' is unbound

/Users/amuino/dev/learn/elixir/couchdb_experiments/deps/couchbeam/src/couchbeam_util.erl:287: Warning: crypto:sha_mac/2 is deprecated and will be removed in a future release; use crypto:hmac/3

** (Mix) Could not compile dependency :couchbeam, "/Users/amuino/.mix/rebar3 bare compile --paths "/Users/amuino/dev/learn/elixir/couchdb_experiments/_build/dev/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile couchbeam", update it with "mix deps.update couchbeam" or clean it with "mix deps.clean couchbeam"

Not being an expert in Erlang/Elixir I reported this in Elixir's slack and this is the feedback I got from one of the Elixir core members:

ericmj: @amuino yes, the release is broken it doesn’t list it dependencies on hex.pm please report the issue to the maintainers

amuino avatar Jan 29 '17 18:01 amuino

Looks like removing mix.exs in d7c3f476287467291c065d3ba4c58bdf8d990923 is what caused the issue. When using couchbeam in Elixir project, mix is not aware of the required dependencies without this file.

vtsatskin avatar Feb 08 '17 15:02 vtsatskin

fixed. 1.5.0 is out.

benoitc avatar Oct 11 '23 00:10 benoitc