-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Chefile handling of inner Dockerfile content #3875
Conversation
Change-Id: I9f6c1dacbef86e2345af5d3c867620658becf8fb Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
Change-Id: Id5ed7cd33c1fe2907dda15918fd2ead158ab544b Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/1753/ |
static keepWorkspaceRawStrings(value : string) : string { | ||
return value.replace(/^(workspace.)(.*)=\`(.*)$/gm, '$1$2=String.raw`$3'); | ||
} | ||
|
||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Newline
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved - but there is a newline to fix.
…r comments correctly 1. Multiline content is escaped by default while it shouldn’t for Dockerfile content. Users may add “String.raw” but it’s not obvious so add it automatically 2. Handle # comments correctly Change-Id: Icafb2e790f83b4a62c0c4d29edf2be08cff1a96f Signed-off-by: Florent BENOIT <fbenoit@codenvy.com>
@TylerJewell fixed |
Build success. https://ci.codenvycorp.com/job/che-pullrequests-build/1760/ |
What does this PR do?
Fix #3704 by handling recipe content as a raw content and handle # for comments correctly
Multiline content is escaped by default while it shouldn’t for Dockerfile content.
Users may add “String.raw” but it’s not obvious so add it automatically
Handle # comments correctly
What issues does this PR fix or reference?
Fix #3704
Changelog and Release Note Information
Changelog
Handle dockerfile content in Chefile as raw string
Release Notes:
bug only
Docs Pull Request
no doc, bug fixing.