devcontainers / devcontainers/features
Git Feature - Add OS support for Alpine
- Vorherrschende Sprache
- Shell
- Sterne
- 1.5k
- Forks
- 622
- Ø Merge
- 6 T. 53 Min.
- Gemergte PRs (30 T.)
- 9
Beschreibung
#782 added distro checks that excludes the Alpine distro. This has effectively broken building images with git for Alpine.
```
------
> [dev_containers_target_stage 4/4] RUN --mount=type=bind,from=dev_containers_feature_content_source,source=git_0,target=/tmp/build-features-src/git_0 cp -ar /tmp/build-features-src/git_0 /tmp/dev-container-features && chmod -R 0755 /tmp/dev-container-features/git_0 && cd /tmp/dev-container-features/git_0 && chmod +x ./devcontainer-features-install.sh && ./devcontainer-features-install.sh && rm -rf /tmp/dev-container-features/git_0:
0.310 ===========================================================================
[2024-01-30T21:00:27.731Z]
0.310 Feature : Git (from source)
0.310 Description : Install an up-to-date version of Git, built from source as needed. Useful for when you want the latest and greatest features. Auto-detects latest stable version and installs needed dependencies.
[2024-01-30T21:00:27.731Z] 0.310 Id : git
0.310 Version : 1.2.0
0.310 Documentation : https://github.com/devcontainers/features/tree/main/src/git
0.310 Options :
0.310 VERSION="os-provided"
0.310 PPA="true"
0.310 ===========================================================================
0.316 Linux distro alpine not supported.
[2024-01-30T21:00:27.732Z] 0.316 ERROR: Feature "Git (from source)" (git) failed to install! Look at the documentation at https://github.com/devcontainers/features/tree/main/src/git for help troubleshooting this error.
------
```
Beitragsleitfaden
Rechercherichtung
Beginne mit den Distro-Prüfungen des Git-Features und dem im Bericht beschriebenen Einstiegspunkt devcontainer-features-install.sh. Reproduziere den Feature-Build auf einem Alpine-Image und verifiziere anschließend, dass Alpine unterstützt wird und die Git-Installation ohne den gemeldeten Fehler wegen einer nicht unterstützten Distro abgeschlossen wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- git, shell
- Bereich
- build-system, devops
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 68/100