diff options
-rwxr-xr-x | rebar3 | bin | 363107 -> 358693 bytes | |||
-rw-r--r-- | rebar3.cmd | 4 | ||||
-rw-r--r-- | src/rlx_util.erl | 4 | ||||
-rw-r--r-- | test/rlx_command_SUITE.erl | 4 |
4 files changed, 8 insertions, 4 deletions
Binary files differ diff --git a/rebar3.cmd b/rebar3.cmd new file mode 100644 index 0000000..6c7a1ca --- /dev/null +++ b/rebar3.cmd @@ -0,0 +1,4 @@ +@echo off +setlocal +set rebarscript=%~f0 +escript.exe "%rebarscript:.cmd=%" %* diff --git a/src/rlx_util.erl b/src/rlx_util.erl index f732055..775d78d 100644 --- a/src/rlx_util.erl +++ b/src/rlx_util.erl @@ -222,7 +222,9 @@ symlink_or_copy(Source, Target) -> {error, _} -> case os:type() of {win32, _} -> - win32_symlink(Source, Target); + S = unicode:characters_to_list(Source), + T = unicode:characters_to_list(Target), + win32_symlink(filename:nativename(S), filename:nativename(T)); _ -> case filelib:is_dir(Target) of true -> ok; diff --git a/test/rlx_command_SUITE.erl b/test/rlx_command_SUITE.erl index 9d1513f..32efc1e 100644 --- a/test/rlx_command_SUITE.erl +++ b/test/rlx_command_SUITE.erl @@ -62,9 +62,7 @@ normal_passing_case(Config) -> {ok, {Opts, Targets}} = getopt:parse(relx:opt_spec_list(), CmdLine), {ok, State} = rlx_cmd_args:args2state(Opts, Targets), {ok, State1} = rlx_config:do(State), - Overrides = rlx_state:overrides(State1), - ct:pal("Overrides: ~p~n", [Overrides]), - ?assertMatch([{lib1,Lib1}], Overrides), + ?assertMatch([{lib1,Lib1}], rlx_state:overrides(State1)), ?assertMatch([Lib1, Lib2], rlx_state:lib_dirs(State1)), ?assertMatch(Outdir, rlx_state:base_output_dir(State1)), |