-
-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unable to build a csharp_proto_library
due to a toolchain-related error
#254
Comments
To use the C# rules you need to manually specify the toolchains and platforms, for example:
This is a requirement of rules_dotnet and isn't specific to rules_proto_grpc. It appears that recent rules_dotnet updates remove this mandatory toolchain specification, but that version is not currently used here. You could try overriding your rules_dotnet version in your WORKSPACE prior to loading rules_proto_grpc, but you'd be in untested territory. |
Thanks @aaliddell . Indeed, the current rules_dotnet allows you to register the desired dotnet toolchain in the WORKSPACE. Yet, I tried
But I'm not sure whether this error ☝🏽 is related to same issue; would you have an idea? |
It appears that I'm supposed to add |
Issue Description
I'm unable to build a
csharp_proto_library
due to a toolchain-related error. I can reproduce this error with thecsharp_proto_library
example on the master branch.Building a
csharp_proto_compile
works, though.rules_proto_grpc Version
4.3.0 (and master)
Bazel Version
5.3.0
OS
macos (darwin arm64)
dotnet Version
6.0.101, 7.0.101, 7.0.202, and 7.0.203
The text was updated successfully, but these errors were encountered: