Shopify / ejson

EJSON is a small library to manage encrypted secrets using asymmetric encryption.
MIT License
1.33k stars 63 forks source link

Segmentation fault when running on M1 Macs (Apple Silicon / Darwin arm64) #79

Closed lucascaton closed 3 years ago

lucascaton commented 3 years ago

Hi there,

I've just tested ejson on a M1 Macbook and while it was installed without any issues/errors, it won't run:

$ bundle exec ejson
[1]    80653 segmentation fault  bundle exec ejson

Considerations:

I think the reason why I was able to install is because this line also matches the return of uname -sm in the new architecture:

$ uname -sm
Darwin arm64

It might need to be split like this:

- when /^Darwin/       ; "darwin-amd64"
+ when /^Darwin amd64/ ; "darwin-amd64"
+ when /^Darwin arm64/ ; "darwin-arm64"

I'm happy to provide more information if you need it.

seanstory commented 3 years ago

Same issue