Closed lrascao closed 9 years ago
Damn, ok, thanks, I guess order does matter. I'll try something else to make it unique and keep the ordering.
Hm, actually, maybe if I just have it always append the output dir to the end that would solve the issue. Would you mind trying the master branch of my fork https://github.com/tsloughter/relx to see if that fixes it and then I'll send a PR.
will do, only on monday though, is that ok?
On Friday, December 26, 2014, Tristan Sloughter notifications@github.com wrote:
Hm, actually, maybe if I just have it always append the output dir to the end that would solve the issue. Would you mind trying the master branch of my fork https://github.com/tsloughter/relx to see if that fixes it and then I'll send a PR.
— Reply to this email directly or view it on GitHub https://github.com/erlware/relx/issues/288#issuecomment-68152687.
Yea, no problem, may have it merged into erlware/relx master before then since it doesn't break anything any more. Just let me know Monday if it solves your issue.
Just tested your fork, works fine!
On Sat, Dec 27, 2014 at 6:19 PM, Tristan Sloughter <notifications@github.com
wrote:
Yea, no problem, may have it merged into erlware/relx master before then since it doesn't break anything any more. Just let me know Monday if it solves your issue.
— Reply to this email directly or view it on GitHub https://github.com/erlware/relx/issues/288#issuecomment-68185912.
sorry, just found out a situation where your fork still fails, it's when you try to generate a new release when none is present, the following error is thrown:
=ERROR REPORT==== 5-Jan-2015::10:48:12 ===
Error in process <0.104.0> with exit value: {function_clause,[{rlx_dscv_util,discover_dir,[#Fun
ERROR: release failed while processing /Users/luis.rascao/Miniclip/hockey-server: {'EXIT',
{function_clause,
[{rlx_dscv_util,discover_dir,
[#Fun
Thanks, I'll look at this today.
fixed in latest master, thanks!
https://github.com/erlware/relx/commit/ba9309ca2431df62ab6a0008ae5a96a165675d2b
This change is causing a bug in relx while generating a release under rebar through the use of rebar_relx_plugin. If you release several times, every other release fails with: hockey: File not found: "hockey.app" running release again the operation succeeds.
adding a bit of debug to see the differences between the lib dir list before and after the change: (_rel is my release directory)
before: lib dirs: [<<"/Users/luis.rascao/Miniclip/hockey-server/apps">>, <<"/Users/luis.rascao/Miniclip/hockey-server/deps">>, <<"/usr/local/Cellar/erlang-r16/R16B03-1_1/lib/erlang/lib">>, <<"/Users/luis.rascao/Miniclip/hockey-server/_rel">>]
after: lib dirs: [<<"/Users/luis.rascao/Miniclip/hockey-server/_rel">>, <<"/Users/luis.rascao/Miniclip/hockey-server/apps">>, <<"/Users/luis.rascao/Miniclip/hockey-server/deps">>, <<"/usr/local/Cellar/erlang-r16/R16B03-1_1/lib/erlang/lib">>]
below follows an --verbose 3 output when it succeeds: [0;32m===> Starting relx build process ... [0m[0;36m===> state(command_line): log: (3:debug), config file: goals: output_dir: /Users/luis.rascao/Miniclip/hockey-server/_rel lib_dirs: providers: tar, relup, release, resolve_release, overlay, rel_discover, app_discover, provider config values: {overlay_vars,[]}, {system_libs,undefined}, {default_libs,true}, [0m [0;36m===> Running provider app_discover [0m[0;32m===> Resolving OTP Applications from directories: /Users/luis.rascao/Miniclip/hockey-server/_rel /Users/luis.rascao/Miniclip/hockey-server/apps /Users/luis.rascao/Miniclip/hockey-server/deps /usr/local/Cellar/erlang-r16/R16B03-1_1/lib/erlang/lib[0m [0;36m===> Resolved the following OTP Applications from the system: hockey-1.2.1: /Users/luis.rascao/Miniclip/hockey-server/apps/hockey Symlink: false Active Dependencies: kernel, stdlib, public_key, lager, gproc, lhttpc, erlcloud, egeoip, mc_user_store, elli, mnesia, inets, iso8601, Library Dependencies:
[0m [0;36m===> Provider successfully run: app_discover [0m[0;36m===> Running provider resolve_release [0m[0;36m===> Solving Release hockey-1.2.1 [0m[0;32m===> Resolved hockey-1.2.1 [0m[0;36m===> release: hockey-1.2.1 erts-5.10.4, realized = true goals: sasl, {"hockey",{{1,2,1},{[],[]}},'='}, nodefinder_ec2, uuid, mnesia, iso8601, mc_user_store, lhttpc, poolboy, gen_leader, erlcloud, gproc, jsx, elli, egeoip, gpb, lager, applications: {uuid,"f6a1cf90"}, {kernel,"2.16.4"}, {stdlib,"1.19.4"}, {xmerl,"1.3.6"}, {jsx,"2.4.0"}, {asn1,"2.0.4"}, {crypto,"3.2"}, {unistring,"0.1.0"}, {poolboy,"1.4.2"}, {eredis,"1.0.6"}, {syntax_tools,"1.6.13"}, {compiler,"4.9.4"}, {gproc,"0.3.1"}, {egeoip,"1.1"}, {elli,"1.0.1"}, {mnesia,"4.11"}, {inets,"5.9.8"}, {iso8601,"1.1.1"}, {goldrush,"0.1.6"}, {public_key,"0.21"}, {ssl,"5.3.3"}, {lager,"2.1.0"}, {lhttpc,"1.3.0"}, {erlcloud,"0.4.1"}, {mc_user_store,"erlcloud_gsi_lhttpc-93-g7c6d0c01"}, {gpb,"3.17.5"}, {gen_leader,"1.0"}, {nodefinder_ec2,"1.0",load}, {hockey,"1.2.1"}, {sasl,"2.3.4"}, [0m [0;36m===> Provider successfully run: resolve_release [0m[0;36m===> Running provider overlay [0m[0;36m===> Provider successfully run: overlay [0m[0;36m===> Running provider release [0m[0;32m===> release successfully created! [0m[0;36m===> Provider successfully run: release [0m
and an output when it fails: [0;32m===> Starting relx build process ... [0m[0;36m===> state(command_line): log: (3:debug), config file: goals: output_dir: /Users/luis.rascao/Miniclip/hockey-server/_rel lib_dirs: providers: tar, relup, release, resolve_release, overlay, rel_discover, app_discover, provider config values: {overlay_vars,[]}, {system_libs,undefined}, {default_libs,true}, [0m [0;36m===> Running provider app_discover [0m[0;32m===> Resolving OTP Applications from directories: /Users/luis.rascao/Miniclip/hockey-server/_rel /Users/luis.rascao/Miniclip/hockey-server/apps /Users/luis.rascao/Miniclip/hockey-server/deps /usr/local/Cellar/erlang-r16/R16B03-1_1/lib/erlang/lib[0m [0;36m===> Resolved the following OTP Applications from the system: egeoip-1.1: /Users/luis.rascao/Miniclip/hockey-server/_rel/hockey/lib/egeoip-1.1 Symlink: false Active Dependencies: kernel, stdlib, Library Dependencies:
[0m [0;36m===> Provider successfully run: app_discover [0m[0;36m===> Running provider resolve_release [0m[0;36m===> Solving Release hockey-1.2.1 [0m[0;32m===> Resolved hockey-1.2.1 [0m[0;36m===> release: hockey-1.2.1 erts-5.10.4, realized = true goals: sasl, {"hockey",{{1,2,1},{[],[]}},'='}, nodefinder_ec2, uuid, mnesia, iso8601, mc_user_store, lhttpc, poolboy, gen_leader, erlcloud, gproc, jsx, elli, egeoip, gpb, lager, applications: {uuid,"f6a1cf90"}, {kernel,"2.16.4"}, {stdlib,"1.19.4"}, {xmerl,"1.3.6"}, {jsx,"2.4.0"}, {asn1,"2.0.4"}, {crypto,"3.2"}, {unistring,"0.1.0"}, {poolboy,"1.4.2"}, {eredis,"1.0.6"}, {syntax_tools,"1.6.13"}, {compiler,"4.9.4"}, {gproc,"0.3.1"}, {egeoip,"1.1"}, {elli,"1.0.1"}, {mnesia,"4.11"}, {inets,"5.9.8"}, {iso8601,"1.1.1"}, {goldrush,"0.1.6"}, {public_key,"0.21"}, {ssl,"5.3.3"}, {lager,"2.1.0"}, {lhttpc,"1.3.0"}, {erlcloud,"0.4.1"}, {mc_user_store,"erlcloud_gsi_lhttpc-93-g7c6d0c01"}, {gpb,"3.17.5"}, {gen_leader,"1.0"}, {nodefinder_ec2,"1.0",load}, {hockey,"1.2.1"}, {sasl,"2.3.4"}, [0m [0;36m===> Provider successfully run: resolve_release [0m[0;36m===> Running provider overlay [0m[0;36m===> Provider successfully run: overlay [0m[0;36m===> Running provider release [0m[0;36m===> Provider (release) failed with: {error, {rlx_prv_assembler, {release_script_generation_error, systools_make, [{error_reading, {hockey, {not_found,"hockey.app"}}}, {error_reading, {nodefinder_ec2, {not_found, "nodefinder_ec2.app"}}}, {error_reading, {gen_leader, {not_found, "gen_leader.app"}}}, {error_reading, {gpb,{not_found,"gpb.app"}}}, {error_reading, {mc_user_store, {not_found, "mc_user_store.app"}}}, {error_reading, {erlcloud, {not_found,"erlcloud.app"}}}, {error_reading, {lhttpc, {not_found,"lhttpc.app"}}}, {error_reading, {lager, {not_found,"lager.app"}}}, {error_reading, {goldrush, {not_found,"goldrush.app"}}}, {error_reading, {iso8601, {not_found,"iso8601.app"}}}, {error_reading, {elli, {not_found,"elli.app"}}}, {error_reading, {egeoip, {not_found,"egeoip.app"}}}, {error_reading, {gproc, {not_found,"gproc.app"}}}, {error_reading, {eredis, {not_found,"eredis.app"}}}, {error_reading, {poolboy, {not_found,"poolboy.app"}}}, {error_reading, {unistring, {not_found, "unistring.app"}}}, {error_reading, {jsx,{not_found,"jsx.app"}}}, {error_reading, {uuid, {not_found,"uuid.app"}}}]}}} [0m