diff options
author | Fred Hebert <mononcqc@ferd.ca> | 2017-11-01 19:38:03 -0400 |
---|---|---|
committer | Fred Hebert <mononcqc@ferd.ca> | 2017-11-16 21:50:04 -0500 |
commit | 2d5cd9c00cfa4e58066b48beee4057fdd52cc7be (patch) | |
tree | b70ad1213e273460f199d55914032f75675c5e9a /src/rebar_hooks.erl | |
parent | 557623ba897d580702034bd76f799b5107d72c6b (diff) |
OTP-21 readiness, Full Unicode support
This replaces all deprecated function usage by alternative ones based on
a version switch enacted at compile time, preventing all warnings.
This will likely introduce some possible runtime errors in using a
Rebar3 compiled on OTP-20 or OTP-21 back in versions 19 and earlier, but
we can't really work around that.
A bunch of dependencies have been updated to support OTP-21 without
warnings as well.
Diffstat (limited to 'src/rebar_hooks.erl')
-rw-r--r-- | src/rebar_hooks.erl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rebar_hooks.erl b/src/rebar_hooks.erl index 48aa928..8893f2a 100644 --- a/src/rebar_hooks.erl +++ b/src/rebar_hooks.erl @@ -140,7 +140,7 @@ create_env(State, Opts) -> ]. join_dirs(BaseDir, Dirs) -> - string:join([ filename:join(BaseDir, Dir) || Dir <- Dirs ], ":"). + rebar_string:join([filename:join(BaseDir, Dir) || Dir <- Dirs], ":"). re_version(Path) -> case re:run(Path, "^.*-(?<VER>[^/-]*)$", [{capture,[1],list}, unicode]) of |