Created
May 16, 2025 00:51
-
-
Save skull-squadron/57be344b4bff76abf5c8c174871edbe3 to your computer and use it in GitHub Desktop.
Install sorbet and tapioca on macOS without failing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
curl https://gist.githubusercontent.com/skull-squadron/57be344b4bff76abf5c8c174871edbe3/raw/install-sorbet-and-tapioca-on-macos.bash | bash