-
Notifications
You must be signed in to change notification settings - Fork 154
RUN directive parsing buggy #46
Comments
bash doesn't allow either case, so Makisu doesn't allow them either. |
After testing this myself in bash, I believe your assessment is only partially correct:
e.g. run the following script:
Works fine for me and prints:
bash version: 3.2.57(1)-release |
I think it depends.
But the following isn't:
I think that's because first example is equivalent of:
which are 2 separate lines and is fine for bash. |
Honestly I don't get it.
How so? Plenty of newlines in dockerfiles in the web: https://github.com/nodejs/docker-node/blob/master/10/stretch/Dockerfile#L27 . Not allowing comments in multi-line RUN directives is a pretty big departure from Dockerfile syntax where having large multi-line RUN commands is common in order to reduce the layer count. I'm aware that multi-line docker RUN directives may become somewhat obsolete when replaced with smart use of If you are absolutely sure that you intentionally want to disallow or discourage multi-line RUN statements with comments in between I think it would be helpful to at least document this caveat / difference to regular Dockerfile's in the makisu README or throw a very explicit error message about it in the parser. |
Sorry if i wasn't clear. I updated my comment.
So the
Makisu supports normal usage of
It's just our support of |
There are more users asking for better compatibility with Docker, so we decided to fix it. See #108. |
Hi, sorry to unearth an old issue. This directive is not parsed correctly. Result is : or did I missed something ? |
oups. |
I'm noticing a bunch of issues with makisu not being able to parse certain RUN directives that just work fine with docker build (18.06.1-ce).
If that happens I get an error message similar to this:
Here are examples which work with docker build, but not with makisu:
NOTICE: There is an empty space after the
\
which makes makiso choke.This example doesn't contain an empty space after
\
but it contains a#
comment that makes makiso choke as well.The text was updated successfully, but these errors were encountered: