bundler config surprises

Initial symptom

I was working on getting an OSS Ruby project up and running, to poke around, run the test suite, and check out their open issues. I ran into an issue with installing its dependencies when running bundle install:

Could not find gems matching 'sorbet-static (= 0.5.11481)' valid for all resolution
platforms (arm64-darwin, x86_64-darwin, x86_64-linux, ruby) in rubygems repository
https://rubygems.org/ or installed locally.

The source contains the following gems matching 'sorbet-static (= 0.5.11481)':
  * sorbet-static-0.5.11481-aarch64-linux
  * sorbet-static-0.5.11481-java
  * sorbet-static-0.5.11481-universal-darwin
  * sorbet-static-0.5.11481-x86_64-linux

I was doing this on an m1 Mac. I would’ve expected the “-universal-darwin” platform to work for mine (Darwin is the code name for macOS). So I assumed something was wrong with my setup, and set out to figure out what that was.

Things I tried

Takeaways: