Skip to content

Properly source feature options - #149

Merged
joshspicer merged 5 commits into
mainfrom
jospicer/escape-options
Aug 31, 2022
Merged

joshspicer merged 5 commits into
mainfrom
jospicer/escape-options

Conversation

@joshspicer

@joshspicer joshspicer commented Aug 30, 2022 •

Copy link
Copy Markdown
Contributor

Fixes #148

Instead of trying to use xargs to parse the .env file, directly source the .env file with set -a enabled.

-a
When this option is on, the export attribute shall be set for each variable to which an assignment is performed;

In the generated Dockerfile, this env file is simply sources with the . operator (The most portable/POSIX-y way to source https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#dot)

@joshspicer
joshspicer requested a review from a team as a code owner August 30, 2022 15:52
Comment thread src/spec-configuration/containerFeaturesConfiguration.ts

@chrmarti Christof Marti (chrmarti) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Spaces not properly escaped in Feature option values

3 participants