alavrik / piqi-erlang

Protocol Buffers, JSON, XML data serialization system for Erlang
http://piqi.org/doc/erlang
Apache License 2.0
68 stars 28 forks source link

Unable to include as a dependency #18

Closed AeroNotix closed 5 years ago

AeroNotix commented 6 years ago

rebar.config:

{deps,
 [
  {piqi, "", {git, "https://github.com/alavrik/piqi-erlang.git", {branch, "master"}}}
 ]}.
~/dev/piqi-test ./rebar3 --version
rebar 3.5.0 on Erlang/OTP 20 Erts 9.0
~/dev/piqi-test ./rebar3 compile
===> Verifying dependencies...
===> Dependency option list [raw] in piqi_binary is not supported and will be ignored
===> Fetching piqi_binary ({git,
                                      "git://github.com/alavrik/piqi-binary.git",
                                      {tag,"v0.6.13"}})
===> Dependency failure: Application piqi_binary not found at the top level of directory /home/xeno/dev/piqi-test/_build/default/lib/piqi_binary
andrea-zanetti commented 6 years ago

Same problem here, same rebar.config.

[andrea@workstation src]$ rebar3 --version
rebar 3.5.0 on Erlang/OTP 19 Erts 8.3.5.4
[andrea@workstation app]$ rebar3 compile
===> Verifying dependencies...
===> Dependency option list [raw] in piqi_binary is not supported and will be ignored
===> Fetching piqi_binary ({git,
                                      "git://github.com/alavrik/piqi-binary.git",
                                      {tag,"v0.6.13"}})
===> Dependency failure: Application piqi_binary not found at the top level of directory /home/andrea/projects/repo/tagging-server/_build/default/lib/piqi_binary

EDIT: Could be related to this rebar3 issue ?

AeroNotix commented 6 years ago

I forked and got it working for what I needed: https://github.com/AeroNotix/piqi-erlang

andrea-zanetti commented 6 years ago

Tnx @AeroNotix I apologize for the dumb question, but i'm quite new to rebar: using that as a drop in replacement i got the same error (aka just replacing the repo address): am i missing something?.

AeroNotix commented 6 years ago

I don't want to spend loads of time debugging this as I find piqi already eats up too much of my time already but: paste the output again, what version of erlang/rebar are you using and did you make sure you did a clean build (rm -rf all the deps folders and pull everything in again).

alavrik commented 6 years ago

@AeroNotix thanks for looking at it! I should definitely add support for rebar3. Hopefully soon.

alavrik commented 6 years ago

@AeroNotix @andrea-zanetti, I have just added support for rebar3. I believe it should be working, but let me know if there are still problems with it.