Skip to content

fix: handle parsing variable expression in dockerfile#337

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

fix: handle parsing variable expression in dockerfile#337
joshspicer merged 4 commits intodevcontainers:mainfrom
ShauryaAg:fix/var-exp

Conversation

@ShauryaAg
Copy link
Contributor

fixes: #336

@ShauryaAg ShauryaAg requested a review from a team as a code owner December 22, 2022 13:53
@ShauryaAg
Copy link
Contributor Author

@microsoft-github-policy-service agree

Copy link
Contributor

@chrmarti chrmarti left a comment

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.

@ShauryaAg
Copy link
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: @chrmarti

@ShauryaAg ShauryaAg requested a review from chrmarti December 28, 2022 19:23
Copy link
Contributor

@chrmarti chrmarti left a comment

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug: Cannot recognise bash-style arguments in Dockerfile

3 participants