From 601ee4da1606917f9a93831dde8d81b48a2fcd49 Mon Sep 17 00:00:00 2001 From: Alexander Fenster Date: Thu, 18 Aug 2022 11:42:25 -0700 Subject: [PATCH] fix: set DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1 (#516) --- 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: