Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Allow uninstalling inactive git versions

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

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

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

評価

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

調査の方向性

Start by reading GitInstallService and InstallToolService.uninstall, then inspect the version service check mentioned in the proposal and the existing uninstall tests. Add coverage for removing an inactive git version, refusing to remove the active one, and the chosen --all behavior. Done means inactive versions and their links can be removed while the active version remains protected with a clear message.

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

説明

What would you like containerbase to do?

Allow uninstall-tool git <version> for versions that aren't the active one.

Background

git comes from the containerbase prebuild now (#7813), so every install-tool git <version> adds a version under the tools folder. GitInstallService sets canUninstall = false, so old versions can't be removed and pile up in images that switch versions.

Removing the active version must stay refused: it backs the git links, the /usr/bin compatibility links and the containerbase-git apt package.

Proposal

  • Let a tool refuse only the uninstall of its active version (e.g. a canUninstall mode or a check in InstallToolService.uninstall via versionSvc.isCurrent), instead of refusing every version.
  • Use it for git: inactive versions are removed with their folder and links, the active one keeps failing with a clear message.
  • uninstall-tool git --all removes every inactive version and keeps the active one, or fails before removing anything — pick one and document it.
  • Tests for both cases.

Drafted by Claude Opus 5.5 (Claude Code) for @viceice.

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

環境構築

Codespaces で開く

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

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

はじめの一歩

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

containerbase/base のほかの issue

containerbase/base の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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