Skip to content

[Proposal] Introduce path property in devcontainer-feature.json #251

Open
@joshspicer

Description

@joshspicer

The $PATH variable is often modified by Features during installation to make a certain tool/script/etc easily accessible from the command line. A common pattern today is to use containerEnv to modify the path variable, like so:

...
"containerEnv": {
   "PATH": "/home/vscode/dotnet":${PATH}"
}
...

Adding a property path to the devcontainer-feature.json would provide a declarative way for indicate what a Feature author intends to be available at the end. Doing so this way would also limit pollution of the PATH variable by allowing the CLI an easy way to dedupe.

Proposal

Property Type Description
path array An array of strings, each an absolute path that should be injected as a member of the $PATH variable.

ref: #234 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    proposalStill under discussion, collecting feedback

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions