klacke/yaws — Issue #84: rebar deps error changing to yaws-1.92
Author: jaynel
Created: 2012-01-29 20:41:35+00:00
State: open

Upgrading from 1.90 to 1.91 works fine, but attempting to upgrade the rebar.config dependencies to refer to 1.92 results in the following rebar error:

Pulling yaws from {git,"git://github.com/klacke/yaws.git",{tag,"yaws-1.92"}}
Cloning into yaws...
ERROR: 'get-deps' failed while processing /Users/jay/Gitdk/dk_yaws: {'EXIT',{badarg,[{re,run,
[{cmd,"sed -ne '1,/^YAWS_VSN=/s/^YAWS_VSN=//p' vsn.mk 2>/dev/null"},
".*",
[{capture,none}]]},
{rebar_deps,is_app_available,3},
{rebar_deps,use_source,2},
{rebar_deps,'-get-deps/2-lc$^0/1-0-',1},
{rebar_deps,'-get-deps/2-lc$^0/1-0-',1},
{rebar_deps,'get-deps',2},
{rebar_core,run_modules,4},
{rebar_core,execute,4}]}}

Recovering from this error requires a manual 'rm -rf deps/*' before an earlier version can be made to work.

Use https://github.com/duomark/dk_yaws/blob/master/rebar.config as an example config, and try changing to 1.90 and back to 1.91. Then change to 1.92 to see the error.