-
Notifications
You must be signed in to change notification settings - Fork 386
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
Comment Parsing error #318
Comments
That's interesting that docker supports that, it's definitely related to the inline comment. I ran it with an older version of earth (before #288 was merged in) and it parsed it fine; however this is what was run:
which had the effect of not installing xz or pigz. Would this be the desired effect or a bug? I took a quick look at python for inspiration, and noticed that both following code examples are invalid:
and
|
FTR, we talked about this internally and we think the best approach is to treat comments as if they're not there. Also, it might be a good idea if blank lines are also ignored - meaning that you can have blank lines between continuations. So all of these should work then: Blank line would be ignored, so continuation still works.
Similar to above, but not as obvious, comment is treated like a blank line, and blank lines are ignored, so continuation still works.
Comment after continuation character is ok:
|
Hello guys! Maybe I could tackle this issue? Already tracked it down to I believe we could change this rule to use a new type of optional blank lines which would go towards the direction proposed by @vladaionescu |
SGTM - it may require testing, experimentation and fiddling. I'll assign this to you. |
This problem also prevents commenting on long RUN statements which are required by WITH DOCKER, making it hard to document the build process.
|
I think this may be a bug. The following works in a docker file, but not in an Earthfile:
Output
The text was updated successfully, but these errors were encountered: