Springboard loops forever when METEOR_WAREHOUSE_DIR is set
Found while building a mise plugin for Meteor; written by Claude Code and reviewed by the author.
Summary
When METEOR_WAREHOUSE_DIR is set, running meteor in an app pinned to a different release than the warehouse's default tool never finishes: the tool springboards to the app's release, which springboards again, forever.
Reproduction (Linux, Meteor 3.5.2 warehouse, app on 3.6-beta.1)
WH=$(mktemp -d)
curl -fsSL https://static.meteor.com/packages-bootstrap/3.5.2/meteor-bootstrap-os.linux.x86_64.tar.gz | tar -xz -C "$WH"
cd some-app # .meteor/release = [email protected]
METEOR_WAREHOUSE_DIR="$WH/.meteor" METEOR_DEBUG_SPRINGBOARD=1 "$WH/.meteor/meteor" --versionOutput: WILL SPRINGBOARD TO [email protected], repeated (188 times in 3 minutes here), and never Meteor 3.6-beta.1.
The same happens after meteor update inside such a warehouse, because updateMeteorToolSymlink() re-points the warehouse's meteor symlink to the latest recommended release: from then on, every run of a non-recommended release loops.
Cause
files.getCurrentToolsDir() returns the target of $METEOR_WAREHOUSE_DIR/meteor whenever the variable is set (tools/fs/files.ts, added in #13199). The springboarded tool therefore reports the default tool's version, main.js sees it differ from the app release and springboards again.
Each execv keeps the previous round's inotify instances open, so the loop ends up exhausting fs.inotify.max_user_instances and the tool hangs silently with no output.
Expected
A tool that runs from inside the warehouse is the current tool; only a checkout run against a warehouse (the #13199 workflow) should resolve to the warehouse's tool.
Source: meteor/meteor