From 0f51dae19b2e503fe648e9e3d48cfed6f6c5dd30 Mon Sep 17 00:00:00 2001 From: Viacheslav Rostovtsev <58152857+viacheslav-rostovtsev@users.noreply.github.com> Date: Thu, 18 Aug 2022 12:58:40 -0700 Subject: [PATCH] fix: set DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 (#516) (#517) Co-authored-by: Alexander Fenster --- rules_csharp_gapic/csharp_compiler.bzl | 2 ++ rules_csharp_gapic/csharp_compiler_repo.bzl | 1 + 2 files changed, 3 insertions(+) diff --git a/rules_csharp_gapic/csharp_compiler.bzl b/rules_csharp_gapic/csharp_compiler.bzl index 86224a43..fe19e5ae 100644 --- a/rules_csharp_gapic/csharp_compiler.bzl +++ b/rules_csharp_gapic/csharp_compiler.bzl @@ -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}/ @@ -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, diff --git a/rules_csharp_gapic/csharp_compiler_repo.bzl b/rules_csharp_gapic/csharp_compiler_repo.bzl index b2299992..993a36e6 100644 --- a/rules_csharp_gapic/csharp_compiler_repo.bzl +++ b/rules_csharp_gapic/csharp_compiler_repo.bzl @@ -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: