Hi Bryan,

You'll want to use a 1.4 branch/tag of riakc if you are connecting to Riak
1.4.x. The master branch is for Riak 2.0. Consider changing your dependency
to be this:

{riakc, "1.4.*", {git, "git://github.com/basho/riak-erlang-client.git",
{branch, "1.4"}}}

If that does not resolve your issue, please report back.


On Sat, Feb 8, 2014 at 11:31 PM, Bryan Hughes <br...@go-factory.net> wrote:

>  Howdy,
>
> Was wondering if anyone can give me some help into what is going on. I
> made the mistake and decided to do a clean build, including getting all new
> deps and sure enough, and am suddenly having problems with rebar.
> Understand everything built prior to pulling new deps just a few minutes
> ago.
>
> I am on a Mac with the latest OS.
>
> Erlang: Erlang R16B03 (erts-5.10.4)
> Rebar: rebar 2.0.0 R14B04 20120604_145614 git 0f24d93
> Riak: 1.4.2
>
> When I run rebar dep-deps, it pulls all the dependencies but then gives me
> the output below.  When I go into riak_pb, I type 'rebar get-deps' and it
> pulls the dependencies ok. I then type 'rebar compile', and it compiles
> ok.  When I step up to the top level project directory, it still craps out
> on the riak_pb dependency directory.  I have our rebar.config output below
> the error message.
>
> ==> Entering directory
> `/Users/bryan/projects/wobblesoft/engineering/gofactory_gomachine/deps/goldrush'
> ==> goldrush (get-deps)
> ==> Leaving directory
> `/Users/bryan/projects/wobblesoft/engineering/gofactory_gomachine/deps/goldrush'
> ==> Leaving directory
> `/Users/bryan/projects/wobblesoft/engineering/gofactory_gomachine/deps/lager'
> ==> Entering directory
> `/Users/bryan/projects/wobblesoft/engineering/gofactory_gomachine/deps/uuid'
> ==> uuid (get-deps)
> ==> Leaving directory
> `/Users/bryan/projects/wobblesoft/engineering/gofactory_gomachine/deps/uuid'
> ==> Entering directory
> `/Users/bryan/projects/wobblesoft/engineering/gofactory_gomachine/deps/riakc'
> ==> riakc (get-deps)
> Pulling riak_pb from {git,"git://github.com/basho/riak_pb"
> ,{tag,"2.0.0.12"}}
> Cloning into 'riak_pb'...
> Checking connectivity... done
> ==> Entering directory
> `/Users/bryan/projects/wobblesoft/engineering/gofactory_gomachine/deps/riak_pb'
> Uncaught error in rebar_core: {'EXIT',
>                                {{badmatch,
>                                  {ok,
>                                   {config,
>
> "/Users/bryan/projects/wobblesoft/engineering/gofactory_gomachine/deps/riak_pb",
>                                    [{erl_opts,[debug_info]},
>                                     {deps,
>                                      [{protobuffs,"0.8.*",
>                                        {git,
>
> "git://github.com/basho/erlang_protobuffs.git",
>                                         {tag,"0.8.1p3"}}}]},
>                                     {eunit_opts,[verbose]},
>                                     {plugins,[riak_pb_msgcodegen]},
>                                     {plugin_dir,"plugins"},
>                                     {escript_name,"doesnothavescript"},
>                                     local,
>                                     {cover_enabled,true},
>                                     {eunit_opts,[verbose]},
>
> {erl_opts,[warnings_as_errors,debug_info]},
>                                     {deps,
>                                      [{riak_pb,"2.0.0.12",
>                                        {git,
> "git://github.com/basho/riak_pb",
>                                         {tag,"2.0.0.12"}}}]},
>                                     {edoc_opts,
>                                      [{stylesheet_file,"priv/edoc.css"},
>                                       {preprocess,true}]},
>                                     {clean_files,
>                                      ["doc/*.html","doc/*.png",
>                                       "doc/edoc-info","doc/*.css"]},
>                                     {application,gomachine,
>                                      [{description,"Go Factory Platform"},
>                                       {vsn,"3.5.0"}]},
>                                     {pre_hooks,
>                                      [{compile,"./generate-include.sh"}]},
>                                     {erl_opts,
>                                      [debug_info,
>                                       {parse_transform,lager_transform}]},
>                                     {lib_dirs,["deps","apps"]},
>                                     {sub_dirs,["rel"]},
>                                     {ct_dir,"ct"},
>                                     {ct_log_dir,"log"},
>                                     {plugins,[rebar_ct]},
>                                     {deps,
>                                      [{lager,".*",
>                                        {git,
>                                         "git://github.com/basho/lager.git"
> ,
>                                         {branch,"master"}}},
>                                       {uuid,".*",
>                                        {git,
>
> "git://github.com/avtobiff/erlang-uuid.git",
>                                         {branch,"master"}}},
>                                       {riakc,".*",
>                                        {git,
>
> "git://github.com/basho/riak-erlang-client.git",
>                                         {branch,"master"}}},
>                                       {mochiweb,".*",
>                                        {git,
>
> "g...@github.com:GOFactory/mochiweb.git"<g...@github.com:GOFactory/mochiweb.git>
> ,
>                                         {branch,"master"}}},
>                                       {erlydtl,".*",
>                                        {git,
>
> "git://github.com/evanmiller/erlydtl.git",
>                                         {branch,"master"}}},
>                                       {gen_smtp,".*",
>                                        {git,
>
> "git://github.com/Vagabond/gen_smtp.git",
>                                         {branch,"master"}}},
>                                       {gofactory_proto,".*",
>                                        {git,
>
> "g...@github.com:GOFactory/gofactory_proto.git"<g...@github.com:GOFactory/gofactory_proto.git>
> ,
>                                         {branch,"master"}}},
>                                       {morey_mc,".*",
>                                        {git,
>
> "g...@github.com:GOFactory/morey_mc.git"<g...@github.com:GOFactory/morey_mc.git>
> ,
>                                         {branch,"master"}}},
>                                       {pbkdf2,".*",
>                                        {git,
>
> "git://github.com/whitelynx/erlang-pbkdf2.git",
>                                         {branch,"master"}}}]},
>                                     {eunit_opts,
>                                      [verbose,
>
> {report,{eunit_surefire,[{dir,"."}]}}]},
>                                     {cover_enabled,true},
>                                     {require_otp_vsn,"R15|R16"}],
>                                    {dict,0,16,16,8,80,48,
>
> {[],[],[],[],[],[],[],[],[],[],[],[],[],
>                                      [],[],[]},
>
> {{[],[],[],[],[],[],[],[],[],[],[],[],[],
>                                       [],[],[]}}}},
>                                   []}},
>                                 [{rebar_core,acc_modules,5,[]},
>                                  {rebar_core,process_dir0,6,[]},
>                                  {rebar_core,process_dir,4,[]},
>                                  {rebar_core,process_each,5,[]},
>                                  {rebar_core,process_dir0,6,[]},
>                                  {rebar_core,process_dir,4,[]},
>                                  {rebar_core,process_each,5,[]},
>                                  {rebar_core,process_dir0,6,[]}]}}
>
> =============================================================
>
> rebar.config
>
> %% -*- erlang -*-
>
> {application, gomachine, [{description, "Go Factory Platform"}, {vsn,
> "3.5.0"}]}.
>
> {pre_hooks, [{compile, "./generate-include.sh"}]}.
>
> {erl_opts, [debug_info, {parse_transform, lager_transform}]}.
>
> {lib_dirs, ["deps", "apps"]}.
>
> %%{clean_files, ["*.eunit", "ebin/*.beam", "src/gof_*.erl",
> "test/gof_*.erl", "proto/*.proto"]}.
>
> {sub_dirs, ["rel"]}.
>
> {ct_dir, "ct"}.
> {ct_log_dir, "log"}.
>
> {plugins, [rebar_ct]}.
>
> {deps, [{lager, ".*", {git, "git://github.com/basho/lager.git", {branch,
> "master"}}},
>         {uuid, ".*", {git, "git://github.com/avtobiff/erlang-uuid.git",
> {branch, "master"}}},
>         {riakc, ".*", {git,
> "git://github.com/basho/riak-erlang-client.git", {branch, "master"}}},
>         {mochiweb, ".*", {git, 
> "g...@github.com:GOFactory/mochiweb.git"<g...@github.com:GOFactory/mochiweb.git>,
> {branch, "master"}}},
>         {erlydtl, ".*", {git, "git://github.com/evanmiller/erlydtl.git",
> {branch, "master"}}},
>         {gen_smtp, ".*", {git, "git://github.com/Vagabond/gen_smtp.git",
> {branch, "master"}}},
>         {gofactory_proto, ".*", {git,
> "g...@github.com:GOFactory/gofactory_proto.git"<g...@github.com:GOFactory/gofactory_proto.git>,
> {branch, "master"}}},
>         {morey_mc, ".*", {git, 
> "g...@github.com:GOFactory/morey_mc.git"<g...@github.com:GOFactory/morey_mc.git>,
> {branch, "master"}}},
>         {pbkdf2, ".*", {git,
> "git://github.com/whitelynx/erlang-pbkdf2.git", {branch, "master"}}}
>    ]}.
>
> {eunit_opts, [verbose, {report, {eunit_surefire, [{dir, "."}]}}]}.
>
> {cover_enabled, true}.
>
> {require_otp_vsn, "R15|R16"}.
>
> --
>
> Bryan Hughes
> *Go Factory*
> (415) 515-7916
> http://www.go-factory.net
>
> *"Internet Class, Enterprise Grade"*
>
>
>
> _______________________________________________
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>


-- 
Sean Cribbs <s...@basho.com>
Software Engineer
Basho Technologies, Inc.
http://basho.com/
_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to