devcontainers / devcontainers/features
feature: expose the distribution type for use by features in choosing installation paths
- Lenguaje dominante
- Shell
- Estrellas
- 1.5k
- Forks
- 622
- Merge medio
- 6 d 53 min
- PR fusionados (30 d)
- 9
Descripción
[Common-utils has a bit of baseline distribution identification](https://github.com/devcontainers/features/blob/fbdc4556d519512736a8e2abfb3e03fcb2c9e0c7/src/common-utils/main.sh#L293) - enough to know what kind of package manger is in play, so that you can have a feature that doesn't just assume Debian and `apt-get` availability. Rather than making all feature developers replicate this bit of code, it would be hugely beneficial to drop it into a function and return a value so that `install.sh` scripts could use that information to know how to proceed with various distributions, or even to report that other distributions just "aren't supported" for that feature.
(related to https://github.com/orgs/devcontainers/discussions/33)
Guía de contribución
Línea de trabajo
Comienza con la lógica de identificación de la distribución en src/common-utils/main.sh alrededor de la línea 293 y revisa cómo los scripts install.sh de las distintas funcionalidades seleccionan actualmente los gestores de paquetes. Define el valor de retorno reutilizable y su uso para las distribuciones compatibles y no compatibles, y después verifica las rutas de instalación afectadas en varias funcionalidades representativas.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- shell
- Área
- devops
- Tipo de issue
- Nueva funcionalidad
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100