Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Allow uninstalling inactive git versions

Abierto
#7,844 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
1-2 días
Aptitud para principiantes
55/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
docker, typescript
Área
devops, tooling

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.

Lenguaje dominante
TypeScript
Estrellas
58
Forks
65
Merge medio
10 h 37 min
PR fusionados (30 d)
462

Preparar el entorno

Abrir en Codespaces

Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.

  • Incluye un Dockerfile o un archivo de Docker Compose
  • Sin plantilla de pull request
  • Sin guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de containerbase/base

Todos los issues de containerbase/base

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.