From 8d617310aa1ee871a6a701b8ae8de21866c94b48 Mon Sep 17 00:00:00 2001 From: Andrew Haines Date: Thu, 12 May 2022 19:19:44 +0100 Subject: [PATCH] chore(deps): Require `grpc` 1.46+ Signed-off-by: Andrew Haines --- CHANGELOG.md | 3 ++- Gemfile.lock | 2 +- README.md | 12 ------------ cerbos.gemspec | 2 +- 4 files changed, 4 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d70a521..0ef8d48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ ## [Unreleased] -No notable changes. +### Changed +- Increased `grpc` version requirement to 1.46+ to avoid [installing a native gem compiled for `x86_64-darwin` on `arm64-darwin`](https://github.com/grpc/grpc/issues/29100) ([#8](https://github.com/cerbos/cerbos-sdk-ruby/pull/8)) ## [0.1.0] - 2022-05-12 ### Added diff --git a/Gemfile.lock b/Gemfile.lock index 3844d73..d3d3096 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,7 +2,7 @@ PATH remote: . specs: cerbos (0.2.0.pre.dev) - grpc (~> 1.45) + grpc (~> 1.46) GEM remote: https://rubygems.org/ diff --git a/README.md b/README.md index ab517e0..24bb2bf 100644 --- a/README.md +++ b/README.md @@ -28,18 +28,6 @@ If you're not using Bundler to manage dependencies, install the gem by running $ gem install cerbos ``` -### Note for M1 Mac users - -Unfortunately, the `grpc` gem currently ships a `universal-darwin` native gem which doesn't actually work on `arm64-darwin` platforms ([grpc/grpc#29100](https://github.com/grpc/grpc/issues/29100)). -If you install the precompiled gem on an M1 Mac, you'll get a `LoadError` including the message "incompatible architecture (have 'x86_64', need 'arm64e')" when you attempt to load the `cerbos` gem. - -Until that issue is resolved, you can work around it by compiling native extensions from source. -Configure Bundler to do so by running - -```console -$ bundle config set --local force_ruby_platform true -``` - ## Example usage ```ruby diff --git a/cerbos.gemspec b/cerbos.gemspec index 0c4ad94..dfac6db 100644 --- a/cerbos.gemspec +++ b/cerbos.gemspec @@ -32,5 +32,5 @@ Gem::Specification.new do |spec| ] spec.required_ruby_version = ">= 2.7.0" - spec.add_dependency "grpc", "~> 1.45" + spec.add_dependency "grpc", "~> 1.46" end