Skip to content

Commit

Permalink
fix: set DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 (#516)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster authored Aug 18, 2022
1 parent ebc8ab0 commit 601ee4d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rules_csharp_gapic/csharp_compiler.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ DOTNET_CLI_HOME="$(pwd)/local_tmp" \
DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 \
DOTNET_CLI_TELEMETRY_OPTOUT=1 \
DOTNET_NOLOGO=1 \
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 \
$cmd || $cmd
cp -r src/* {out}/
Expand Down Expand Up @@ -60,6 +61,7 @@ DOTNET_CLI_HOME="$(pwd)/local_tmp" \
DOTNET_SKIP_FIRST_TIME_EXPERIENCE=1 \
DOTNET_CLI_TELEMETRY_OPTOUT=1 \
DOTNET_NOLOGO=1 \
DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 \
$cmd || $cmd
""".format(
csharp_compiler = ctx.file.csharp_compiler.short_path,
Expand Down
1 change: 1 addition & 0 deletions rules_csharp_gapic/csharp_compiler_repo.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def _dotnet_restore_impl(ctx):
"DOTNET_SKIP_FIRST_TIME_EXPERIENCE": "1",
"DOTNET_CLI_TELEMETRY_OPTOUT": "1",
"DOTNET_NOLOGO": "1",
"DOTNET_SYSTEM_GLOBALIZATION_INVARIANT": "1",
},
)
if res.return_code == 0:
Expand Down

0 comments on commit 601ee4d

Please sign in to comment.