Skip to content

fix: handle parsing variable expression in dockerfile - #337

Merged
joshspicer merged 4 commits into
devcontainers:mainfrom
ShauryaAg:fix/var-exp
Jan 3, 2023
Merged

joshspicer merged 4 commits into
devcontainers:mainfrom
ShauryaAg:fix/var-exp

Conversation

@ShauryaAg

Copy link
Copy Markdown
Contributor

fixes: #336

@ShauryaAg
Shaurya Agarwal (ShauryaAg) requested a review from a team as a code owner December 22, 2022 13:53
@ShauryaAg

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

@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 for the PR! Left a few comments.

Comment thread src/spec-node/dockerfileUtils.ts Resolved
Comment thread src/spec-node/dockerfileUtils.ts Resolved
@ShauryaAg

Copy link
Copy Markdown
Contributor Author

Known issues:
The current implementation does not support quoted expression variables, that is ${arg:+"word"} will not be evaluated correctly in FROM statements as the fromStatement regex does not parse such FROM lines correctly.

cc: Christof Marti (@chrmarti)

@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.

LGTM, thanks! (Getting a second reviewer now before we can merge.)

@joshspicer
joshspicer merged commit 338857f into devcontainers:main Jan 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants