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

オープン
#8,121 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
docker, typescript
領域
tooling

調査の方向性

Start by tracing how install-gem, install-npm, install-pip and their uninstall counterparts select resolvers and install services, then check how install-tool <name> uses ResolverMap. Review the version database, tool folders and shell wrappers for unprefixed-name records, and update docs/tools.md to remove the clash notes. Done means prefixed installs and uninstalls avoid tool-name clashes, existing records are migrated or documented, and install-tool still works for ResolverMap tools.

索引モデルが issue の本文から書いたものです。

説明

breaking

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.

主要言語
TypeScript
スター
58
フォーク
65
平均マージ
7時間 28分
マージ済み PR(30日)
483

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

  • Dockerfile または Docker Compose ファイルあり
  • プルリクエストのテンプレートなし
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

containerbase/base のほかの issue

containerbase/base の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。