licensed icon indicating copy to clipboard operation
licensed copied to clipboard

Replace mini_racer to fix latest macOS/Apple silicon compatibility

Open CvX opened this issue 3 years ago • 0 comments

mini_racer 0.3.1 isn't compatible with more recent macOS versions (in part due to lack of python 2) which made script/setup fail with Gem::Ext::BuildError: ERROR: Failed to build gem native extension

Updating mini_racer caused a different problem - a bug in bundler caused it to install both linux and linux-musl variants in the CI environment. (see: https://github.com/rubyjs/libv8-node/issues/5 and https://github.com/rubygems/rubygems/issues/3174)

This instead replaces mini_racer example with loofah. That gem depends on nokogiri which provides different binary variants, like libv8/libv8-node did.

But this one builds properly on macOS and does not provide linux-musl variant so it should not cause any issues on CI.

CvX avatar Jul 30 '22 08:07 CvX