gapic-generator-csharp icon indicating copy to clipboard operation
gapic-generator-csharp copied to clipboard

Bazel rules fail to build on MacOS (Darwin x86_64)

Open aohren opened this issue 5 years ago • 1 comments

Attempting to invoke the Bazel rules for GAPIC generation fails on MacOS. Looks like csharp_compiler_repo.bzl is hardcoded to fetch the Linux x64 version of the dotnet compiler, which obviously won't run on anything except Linux x64?

ERROR: An error occurred during the fetch of repository 'gapic_generator_restore':
   Failed to execute command: `/private/var/tmp/_bazel_aohren/755911223d1a3dde461b23447f5a3cf9/external/csharp_compiler/dotnet_compiler/dotnet restore restore/src/Google.Api.Generator/Google.Api.Generator.csproj --packages=restore/packages --verbosity=quiet`
Exit Code: 126
STDERR: /private/var/tmp/_bazel_aohren/755911223d1a3dde461b23447f5a3cf9/external/csharp_compiler/dotnet_compiler/dotnet: /private/var/tmp/_bazel_aohren/755911223d1a3dde461b23447f5a3cf9/external/csharp_compiler/dotnet_compiler/dotnet: cannot execute binary file

aohren avatar Oct 31 '20 15:10 aohren

@aohren You are correct that the rule is currently hardcoded for linux only. This should be fixed.

chrisdunelm avatar Nov 02 '20 18:11 chrisdunelm

Closing as not required.

jskeet avatar May 07 '24 16:05 jskeet