devcontainers / devcontainers/spec
Allow the use of workspaceFolder without specifying workspaceMount
- Vorherrschende Sprache
- Keine Sprachdaten
- Sterne
- 5.7k
- Forks
- 496
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Today the `workspaceFolder` property requires `workspaceMount` to be in non-dockerCompose scenarios. Given processing for `devcontainer.json` should mount the location of the `.git` folder unless `workspaceMount` is set, it is reasonable to allow this property to be set independently.
In this scenario, the following syntax could be used to connect to a relative path to the detected auto-mount location.
```
"workspaceFolder": "${containerWorkspaceFolder}/some/sub/path"
```
To avoid confusion, if `workspaceMount` is specified, or this is a Docker Compose scenario, `${containerWorkspaceFolder}` would be treated like `""`. We could also introduce a different variable here instead (e.g. `defaultContainerWorkspaceFolder`) that had these same smarts in it.
Beitragsleitfaden
Rechercherichtung
Beginne damit, die Verarbeitung von devcontainer.json für workspaceFolder, workspaceMount, das automatische Einbinden von .git und Docker-Compose-Szenarien nachzuverfolgen. Vergleiche das vorgeschlagene Verhalten von containerWorkspaceFolder mit der alternativen Variable, und definiere als abgeschlossen, dass workspaceFolder ohne workspaceMount zulässig ist, während die angegebenen workspaceMount- und Compose-Semantiken erhalten bleiben.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- docker
- Bereich
- devops
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 30/100