-
Notifications
You must be signed in to change notification settings - Fork 18.9k
Refactor Dockerfile.parser and directive #32580
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
Refactor Dockerfile.parser and directive #32580
Conversation
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Signed-off-by: Daniel Nephin <dnephin@docker.com>
Signed-off-by: Daniel Nephin <dnephin@docker.com>
tonistiigi
left a comment
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.
LGTM
vdemeester
left a comment
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.
LGTM 🦁
|
@dnephin Hmmm, just seen this. By having What was the rationale for splitting the first line out and not just treating every line as "just another line". |
|
Oh, I see. It's the BOM handling. I'll figure it out :) |
|
Ya, I was thinking about that case when I was making these changes, but didn't want to worry about it in case we never added another directive. I think |
Don't expose parser.Directive outside of the parser package
Remove duplication in
parser.Parse()and make it easier to support #29161