-
Notifications
You must be signed in to change notification settings - Fork 362
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
Error loading libgrpc on osx_arm64 with dotnet 6 when building firestore client #7560
Comments
This isn't really the Firestore library, but Grpc.Core not supporting that platform. You could request support on the grpc/grpc repo but Grpc.Core is now in maintenance mode. In the next major version of all our libraries (expected 2022H1) we will be migrating to Grpc.Net.Client. You can manually use the Grpc.Net.Client adapter before then, however:
var db = new FirestoreDbBuilder
{
ProjectId = "project-id",
GrpcAdapter = GrpcNetClientAdapter.Default
}.Build(); Note that this is an untested scenario - we don't perform any OSX testing - but I'd expect it to just work out of the box. |
@jskeet Thank you for taking your time to reply with a possible solution anyway. I can confirm that the proposed solution works, thank you! |
…r issue: googleapis/google-cloud-dotnet#7560 to use Alpine base container image.
Any updates on this? We are using the API's extensively throughout our tooling, and this is a problem among our M1 users. Ideally didn't want to go refactoring workaround in many places if the change is upcoming anytime soon |
@carlpatchett: Yes, we shipped in June 2022. So if you use Google.Cloud.Firestore version 3.0.0 for example, from .NET 6 or .NET Core 3.1, it'll use Grpc.Net.Client and should work in M1. |
Environment details
Steps to reproduce
FirestoreDb.Create("projectId")
Stacktrace:
The text was updated successfully, but these errors were encountered: