devcontainers / devcontainers/cli

Custom devcontainer folder name when developing features locally

Offen
#1,051 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
3k
Forks
457
Ø Merge
13 Std. 17 Min.
Gemergte PRs (30 T.)
6

Beschreibung

I am exploring the idea of using a `devcontainer` as a portable toolbox. The main idea is to have a repo that just constitutes what would be the usual `.devcontainer` folder. The problem is that I do not want to use that name, to not clash with that name if the project I use it within is already using devcontainers.

The idea is that through locally developed features, I could create a number of scripts (e.g., local `uv` tools) that I can just use within any project (and benefit of the ease of mounting of devcontainers).

All works really well, and I am happy where this is going, but the main problem is that to reference a feature that lives locally, I must have a `.devcontainer` folder. For the rest, I can call the folder whatever I want and just pass a `--config` flag.

Is there any chance where that constraint is removed and locally referenced features work in any arbitrary folder? Maybe the parent folder of where `--config` is pointing to?

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne damit, die Verarbeitung von --config durch die CLI und den Code nachzuverfolgen, der lokal referenzierte Features auflöst. Prüfe, wie die aktuelle .devcontainer-Anforderung durchgesetzt wird und ob zugehörige Tests beliebige Konfigurationsorte abdecken. Als erledigt gilt die Aufgabe, wenn ein lokal referenziertes Feature aus einem beliebigen Ordner funktioniert, ohne den Namen .devcontainer zu erfordern.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
typescript
Bereich
cli
Issue-Typ
Feature
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.