Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-word containerEnv variables for features broken #532

Closed
MihaiBSony opened this issue May 22, 2023 · 1 comment
Closed

Multi-word containerEnv variables for features broken #532

MihaiBSony opened this issue May 22, 2023 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@MihaiBSony
Copy link

Passing a multi-word containerEnv variable to a feature does not work without explicitly adding quotes. For example the following devcontainer-feature.json:

{
  ...
  "containerEnv": {
    "MY_VAR": "some value"
  }
}

Leads to the dockerfile command ENV MY_VAR=some value which is invalid, since the ENV command allows multiple key-value pairs. Instead, the user currently has to use "MY_VAR": "\"some value\"".

@chrmarti chrmarti self-assigned this Jun 1, 2023
@chrmarti chrmarti added the bug Something isn't working label Jun 1, 2023
@chrmarti chrmarti added this to the June 2023 milestone Jun 1, 2023
@bamurtaugh
Copy link
Member

cc @joshspicer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants