Skip to content

Prefix packages of install-gem, install-npm and install-pip with their type to avoid tool name clashes #8121

Description

@viceice

What would you like containerbase to do?

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.

Activity

  1. added this to the v15 milestone on Oct 30, 2026
  2. added
    breaking
    on Oct 30, 2026
  3. added theissue type on Oct 30, 2026
  4. viceice commented on Nov 2, 2026

    @viceice
    MemberAuthor

    Drafted by Claude (Claude Code) for @viceice.

  5. viceice commented on Nov 2, 2026

    @viceice
    MemberAuthor
    • 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.

    Drafted by Claude (Claude Code) for @viceice.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    breaking

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions