On the new macOS High Sierra
salimane at Salimanes-MacBook-Pro (git:salimane.com) in ~/src/project
卤 cat .tool-versions
erlang 20.0
elixir 1.5.1
nodejs 6.11.2
salimane at Salimanes-MacBook-Pro (git:salimane.com) in ~/src/project
卤 asdf install
erlang 20.0 is already installed
elixir 1.5.1 is already installed
nodejs 6.11.2 is already installed
salimane at Salimanes-MacBook-Pro (git:salimane.com) in ~/src/project
卤 mix local.hex
Assertion failed: (ctx), function digest_update, file /BuildRoot/Library/Caches/com.apple.xbs/Sources/boringssl/boringssl-109.1.5/apple/crypto/digests.c, line 49.
zsh: abort mix local.hex
The issue is well described here
There is already a fix in homebrew core
Thanks
The fix is merged in Erlang 20.1 which hopefully is released in the next few weeks. Until then I have just uninstalled all asdf Erlang versions and installed the latest homebrew version as you mentioned which is working on High Sierra GM seed. Not ideal but it's simple and works great.
FYI OTP 20.1 is officially out.
... and there's a PR to add it! https://github.com/asdf-vm/asdf-erlang/pull/43
You can also run asdf install erlang 20.1 to install 20.1 now.
Erlang 19 seems to have the same problem. While the fix is merged in 20.1 and for homebrew erlang package, I use asdf specifically to maintain multiple versions of Erlang for development purposes.
We'd need to do sth like this https://github.com/Homebrew/homebrew-core/pull/15297/commits/e3a9e39a6736deaf7b2e5ae7e976bcf724d28610 in here to make it work on older versions.
We've since switched to https://github.com/kerl/kerl for Erlang builds, so this hopefully shouldn't be a problem anymore.
Most helpful comment
You can also run
asdf install erlang 20.1to install 20.1 now.