Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save skull-squadron/57be344b4bff76abf5c8c174871edbe3 to your computer and use it in GitHub Desktop.
Save skull-squadron/57be344b4bff76abf5c8c174871edbe3 to your computer and use it in GitHub Desktop.
Install sorbet and tapioca on macOS without failing
#!/usr/bin/env bash
# Because Shopify sucks at release engineering consistency and insists on imposing overly-complicated, nonstandard build systems
# Whoever did this, this is for you: ✨ 🖕 🖕 ✨
set -Eeuo pipefail
ver=$(curl -fsSL https://rubygems.org/gems/sorbet-static/versions | sed -E '/darwin/!d;s!</a>!!;s/.*>//' | sort -V | tail -1)
gem install sorbet-static-and-runtime -v "$ver"
gem install tapioca
# Gemfile
#
# sorbet_static_ver = `curl -fsSL https://rubygems.org/gems/sorbet-static/versions | sed -E '/darwin/!d;s!</a>!!;s/.*>//' | sort -V | tail -1`.chop
# gem 'sorbet-static-and-runtime', "=#{sorbet_static_ver}"
# gem 'tapioca', require: false, group: [:development, :test]
@skull-squadron
Copy link
Author

curl https://gist.githubusercontent.com/skull-squadron/57be344b4bff76abf5c8c174871edbe3/raw/install-sorbet-and-tapioca-on-macos.bash | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment