agner/agner — Issue #269: agner installer fails to git clone a dependency but proceeds without retrying
Author: steakknife
Created: 2011-10-24 15:56:38+00:00
State: open

```
Cloning into /tmp/agner.09ZtSI...
remote: Counting objects: 1800, done.
remote: Compressing objects: 100% (618/618), done.
remote: Total 1800 (delta 1265), reused 1702 (delta 1174)
Receiving objects: 100% (1800/1800), 7.55 MiB | 381 KiB/s, done.
Resolving deltas: 100% (1265/1265), done.
==> agner.09ZtSI (get-deps)
[Processing dependency: rebar]
error: The requested URL returned error: 403 while accessing https://github.com/basho/rebar.git/info/refs

fatal: HTTP request failed
[Processing dependency: gen_fsm2]
remote: Counting objects: 28, done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 28 (delta 9), reused 28 (delta 9)
Unpacking objects: 100% (28/28), done.
[Processing dependency: getopt]
remote: Counting objects: 230, done.
remote: Compressing objects: 100% (97/97), done.
remote: Total 230 (delta 105), reused 226 (delta 102)
Receiving objects: 100% (230/230), 218.45 KiB, done.
Resolving deltas: 100% (105/105), done.
[Processing dependency: gproc]
remote: Counting objects: 868, done.
remote: Compressing objects: 100% (341/341), done.
Receiving objects: 52% (452/868), 284.00 KiB | remote: Total 868 (delta 614), reused 742 (delta 494)
[Processing dependency: jsx]
remote: Counting objects: 2223, done.
Receiving objects: 100% (2223/2223), 731.18 KiB | 614 KiB/s, done.
Resolving deltas: 100% (1320/1320), done.
[Processing dependency: plists]
remote: Counting objects: 68, done.
Unpacking objects: 100% (68/68), done.57)Unpacking objects: 1% (1/68)
[Processing dependency: typespecs]
remote: Counting objects: 91, done.
Unpacking objects: 100% (91/91), done.55)
==> agner.09ZtSI (pre_compile)
[Processing dependency: rebar]
[Building...]
ERROR: Build failed
[Processing dependency: gen_fsm2]
==> example (get-deps)
==> gen_fsm2 (get-deps)
[Building...]
==> example (compile)
Compiled src/example_fsm.erl
==> gen_fsm2 (compile)
Compiled src/gen_fsm2.erl
[Processing dependency: getopt]
==> getopt (get-deps)
[Building...]
==> getopt (compile)
Compiled src/getopt.erl
[Processing dependency: gproc]
==> edown (get-deps)
==> gen_leader (get-deps)
==> gproc (get-deps)
[Building...]
==> edown (compile)
Compiled src/edown_lib.erl
Compiled src/edown_xmerl.erl
Compiled src/edown_make.erl
Compiled src/edown_doclet.erl
Compiled src/edown_layout.erl
==> gen_leader (compile)
Compiled src/gen_leader.erl
==> gproc (compile)
Compiled src/gproc_init.erl
Compiled src/gproc_sup.erl
Compiled src/gproc_info.erl
Compiled src/gproc_app.erl
Compiled src/gproc_lib.erl
Compiled src/gproc_dist.erl
Compiled src/gproc.erl
[Processing dependency: jsx]
==> jsx (get-deps)
[Building...]
==> jsx (compile)
Compiled src/jsx_encoder.erl
Compiled src/jsx_utils.erl
Compiled src/jsx.erl
Compiled src/jsx_decoder.erl
[Processing dependency: plists]
==> plists (get-deps)
[Building...]
==> plists (compile)
Compiled src/plists.erl
[Processing dependency: typespecs]
==> typespecs (get-deps)
[Building...]
==> typespecs (compile)
==> agner.09ZtSI (compile)
Compiled src/agner_index.erl
Compiled src/agner_utils.erl
Compiled src/agner_sup.erl
Compiled src/agner_repo_server_sup.erl
Compiled src/agner_spec.erl
Compiled src/agner_rebar_plugin.erl
Compiled src/agner_server.erl
Compiled src/agner_repo_server.erl
Compiled src/agner_main.erl
Compiled src/agner_download.erl
Compiled src/agner_app.erl
Compiled src/agner.erl
Compiled src/agner_github.erl
Compiled src/agner_fetch.erl
cp: deps/rebar/ebin/rebar*: No such file or directory
make: *** [compile] Error 1
~/bin ᐅ latest-agner
Cloning into /tmp/agner.wWk44J...
remote: Counting objects: 1800, done.
remote: Compressing objects: 100% (618/618), done.
remote: Total 1800 (delta 1265), reused 1702 (delta 1174)
Receiving objects: 100% (1800/1800), 7.55 MiB | 503 KiB/s, done.
Resolving deltas: 100% (1265/1265), done.
==> agner.wWk44J (get-deps)
[Processing dependency: rebar]
remote: Counting objects: 3572, done.
Receiving objects: 100% (3572/3572), 752.40 KiB | 287 KiB/s, done.
Resolving deltas: 100% (2177/2177), done.
[Processing dependency: gen_fsm2]
error: RPC failed; result=22, HTTP code = 504
fatal: The remote end hung up unexpectedly
[Processing dependency: getopt]
remote: Counting objects: 230, done.
remote: Compressing objec[Processing dependency: gproc]
remote: Counting objects: 868, done.
Receiving objects: 100% (868/868), 779.98 KiB | 415 KiB/s, done. (1/868)
Resolving deltas: 100% (614/614), done.
[Processing dependency: jsx]
remote: Counting objects: 2223, done.
remote: Compressing objects: 100% (924/924), done.
remote: Total 2223 (delta 1320), reused 2027 (delta 1152)
Receiving objects: 100% (2223/2223), 731.18 KiB | 520 KiB/s, done.
Resolving deltas: 100% (1320/1320), done.
[Processing dependency: plists]
remote: Counting objects: 68, done.
remote: Compressing objects: 100% (57/57), done.
remote: Total 68 (delta 26), reused 0 (delta 0)
Unpacking objects: 100% (68/68), done.
[Processing dependency: typespecs]
remote: Counting objects: 91, done.
remote: Compressing objects: 100% (55/55), done.
remote: Total 91 (delta 18), reused 91 (delta 18)
Unpacking objects: 100% (91/91), done.
==> agner.wWk44J (pre_compile)
[Processing dependency: rebar]
[Building...]
Recompile: src/getopt
Recompile: src/mustache
Recompile: src/rebar
Recompile: src/rebar_abnfc_compiler
Recompile: src/rebar_app_utils
Recompile: src/rebar_appups
Recompile: src/rebar_asn1_compiler
Recompile: src/rebar_base_compiler
Recompile: src/rebar_cleaner
Recompile: src/rebar_config
Recompile: src/rebar_core
Recompile: src/rebar_ct
Recompile: src/rebar_deps
Recompile: src/rebar_edoc
Recompile: src/rebar_erlc_compiler
Recompile: src/rebar_erlydtl_compiler
Recompile: src/rebar_escripter
Recompile: src/rebar_eunit
Recompile: src/rebar_file_utils
Recompile: src/rebar_lfe_compiler
Recompile: src/rebar_log
Recompile: src/rebar_neotoma_compiler
Recompile: src/rebar_otp_app
Recompile: src/rebar_port_compiler
Recompile: src/rebar_protobuffs_compiler
Recompile: src/rebar_rel_utils
Recompile: src/rebar_reltool
Recompile: src/rebar_require_vsn
Recompile: src/rebar_subdirs
Recompile: src/rebar_templater
Recompile: src/rebar_upgrade
Recompile: src/rebar_utils
Recompile: src/rebar_xref
==> rebar (compile)
Congratulations! You now have a self-contained script called "rebar" in
your current working directory. Place this script anywhere in your path
and you can use rebar to build OTP-compliant apps.
[Processing dependency: gen_fsm2]
[Building...]
[Processing dependency: getopt]
==> getopt (get-deps)
[Building...]
==> getopt (compile)
Compiled src/getopt.erl
[Processing dependency: gproc]
==> edown (get-deps)
==> gen_leader (get-deps)
==> gproc (get-deps)
[Building...]
==> edown (compile)
Compiled src/edown_make.erl
Compiled src/edown_lib.erl
Compiled src/edown_xmerl.erl
Compiled src/edown_doclet.erl
Compiled src/edown_layout.erl
==> gen_leader (compile)
Compiled src/gen_leader.erl
==> gproc (compile)
Compiled src/gproc_init.erl
Compiled src/gproc_sup.erl
Compiled src/gproc_info.erl
Compiled src/gproc_app.erl
Compiled src/gproc_lib.erl
Compiled src/gproc_dist.erl
Compiled src/gproc.erl
[Processing dependency: jsx]
==> jsx (get-deps)
[Building...]
==> jsx (compile)
Compiled src/jsx_utils.erl
Compiled src/jsx_encoder.erl
Compiled src/jsx.erl
Compiled src/jsx_decoder.erl
Compiled src/jsx_decoder.erl
[Processing dependency: plists]
==> plists (get-deps)
[Building...]
==> plists (compile)
Compiled src/plists.erl
[Processing dependency: typespecs]
==> typespecs (get-deps)
[Building...]
==> typespecs (compile)
==> agner.wWk44J (compile)
Compiled src/agner_index.erl
Compiled src/agner_utils.erl
Compiled src/agner_sup.erl
Compiled src/agner_repo_server_sup.erl
Compiled src/agner_spec.erl
Compiled src/agner_repo_server.erl
Compiled src/agner_rebar_plugin.erl
Compiled src/agner_server.erl
Compiled src/agner_main.erl
Compiled src/agner_github.erl
Compiled src/agner_app.erl
Compiled src/agner_download.erl
Compiled src/agner.erl
Compiled src/agner_fetch.erl
==> agner.wWk44J (escriptize)
FAILURE: {undef,[{gen_fsm2,start_link,
[agner_fetch,
[{build,true},
{directory,"/tmp/agner310954"},
{install,true},
{addpath,false},
{nodeps,false},
{package,"agner"},
{version,"@master"},
{quiet,false},
{nofetch,false}],
[]]},
{agner_main,handle_command,2},
{agner_main,handle_command,2},
{agner_main,main,1},
{escript,run,2},
{escript,start,1},
{init,start_it,1},
{init,start_em,1}]}
```