Fixup format check on windows

This commit is contained in:
Rin Kuryloski 2022-11-02 10:44:36 +01:00
parent cb935a034e
commit bff69d325c
2 changed files with 2 additions and 10 deletions

View File

@ -1,7 +1,3 @@
load(
"@rules_erlang//:erlang_app_info.bzl",
"ErlangAppInfo",
)
load(
"@rules_erlang//:util.bzl",
"path_join",
@ -13,10 +9,6 @@ load(
"erlang_dirs",
"maybe_install_erlang",
)
load(
":rabbitmqctl.bzl",
"deps_dir_contents",
)
def _impl(ctx):
(erlang_home, _, erlang_runfiles) = erlang_dirs(ctx)
@ -74,8 +66,6 @@ set -x
else:
output = ctx.actions.declare_file(ctx.label.name + ".bat")
script = """@echo off
echo Erlang Version: {erlang_version}
:: set LANG="en_US.UTF-8"
:: set LC_ALL="en_US.UTF-8"
@ -89,6 +79,7 @@ robocopy {package_dir}\\config %OUTPUTS_DIR%\\config /E /NFL /NDL /NJH /NJS /nc
robocopy {package_dir}\\lib %OUTPUTS_DIR%\\lib /E /NFL /NDL /NJH /NJS /nc /ns /np
robocopy {package_dir}\\test %OUTPUTS_DIR%\\test /E /NFL /NDL /NJH /NJS /nc /ns /np
copy {package_dir}\\mix.exs %OUTPUTS_DIR%\\mix.exs || goto :error
copy {package_dir}\\.formatter.exs %OUTPUTS_DIR%\\.formatter.exs || goto :error
cd %OUTPUTS_DIR% || goto :error

View File

@ -133,6 +133,7 @@ robocopy {package_dir}\\config %OUTPUTS_DIR%\\config /E /NFL /NDL /NJH /NJS /nc
robocopy {package_dir}\\lib %OUTPUTS_DIR%\\lib /E /NFL /NDL /NJH /NJS /nc /ns /np
robocopy {package_dir}\\test %OUTPUTS_DIR%\\test /E /NFL /NDL /NJH /NJS /nc /ns /np
copy {package_dir}\\mix.exs %OUTPUTS_DIR%\\mix.exs || goto :error
copy {package_dir}\\.formatter.exs %OUTPUTS_DIR%\\.formatter.exs || goto :error
cd %OUTPUTS_DIR% || goto :error