Hi group,

Just wanted to give heads up on how to compile and run CB projects with 
Erlang 17 RC2.

"rebar boss c=compile" inside of projects will be blowing up due to this:

https://github.com/ChicagoBoss/boss_db/blob/master/src/boss_compiler.erl#L98

erlang:system_info(otp_release) return "17" instead of "R17", at least in 
17 RC2.

A quick fix is to change it:


otp_version() ->
    OTPVersion       = erlang:system_info(otp_release),
    {Version, _Rest} = case string:to_integer(string:sub_string(OTPVersion, 
1, 1)) of
    {First, _} when is_integer(First) -> string:to_integer(OTPVersion);
_ -> string:to_integer(string:sub_string(OTPVersion, 2, 3))
    end,
    Version.


PS. Several of the 41 dependencies will be not compiling in Erlang 17 due 
to their rebar.config files containg "error on warn" such as poolboy and 
riakc, or containing "R15|R16"

-rambocoder

-- 
You received this message because you are subscribed to the Google Groups 
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/chicagoboss/e5249cb4-d952-477b-a015-3fa033c7eacd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to