You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Prefix packages of install-gem, install-npm and install-pip with their type to avoid tool name clashes #8121
Stop install-gem, install-npm and install-pip from picking a known tool's own resolver and installer when the package name matches a tool name.
Today the resolver and the install service are both picked by the first name match, and the tool's own ones are registered before the generic ones:
install-gem yarn / install-pip yarn install the latest @yarnpkg/cli-dist from npmjs, not a yarn gem or pip package
install-npm yarn installs @yarnpkg/cli-dist, not the yarn package
the same for every other tool name, eg. install-pip node
uninstall-gem, uninstall-npm and uninstall-pip have the same clash
Required changes
internally prefix packages installed with install-gem, install-npm and install-pip with their type and a symbol no tool or package name uses, eg. npm+yarn, gem+yarn, pip+yarn, so they never match a tool's resolver or install service; the symbol must be safe in directory names and PATH (no : or /)
the same for uninstall-gem, uninstall-npm and uninstall-pip
install-tool <name> for a ResolverMap tool keeps working
migrate or document installs recorded under the unprefixed name (version database, tool folders, shell wrappers)
remove the name clash notes from docs/tools.md
Breaking change, next major.
Drafted by Claude Opus 5.5 (Claude Code) for @viceice.
uninstall-gem, uninstall-npm and uninstall-pip have the same clash: uninstallTool() ignores the type, so the service is picked by name only. uninstall-gem yarn removes the yarn tool (@yarnpkg/cli-dist), and a name installed by install-npm can be removed with uninstall-gem or uninstall-pip. The type-prefixed names should cover uninstall too.
Activity
viceice commentedon Nov 2, 2026
install-gem,install-npmandinstall-pipread no tool-versions data, so a partial version of php, composer or mise through the clash fails, eg.install-npm php 8.3. Their own resolvers only look uplatest. Accepted until this issue removes the clash.Drafted by Claude (Claude Code) for @viceice.
viceice commentedon Nov 2, 2026
uninstall-gem,uninstall-npmanduninstall-piphave the same clash:uninstallTool()ignores thetype, so the service is picked by name only.uninstall-gem yarnremoves theyarntool (@yarnpkg/cli-dist), and a name installed byinstall-npmcan be removed withuninstall-gemoruninstall-pip. The type-prefixed names should cover uninstall too.Drafted by Claude (Claude Code) for @viceice.