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
Dockerfile comment line with continuation #3898
Comments
I hit this one repeatedly :-/ |
Fixes moby#3898 Docker-DCO-1.1-Signed-off-by: Michael Crosby <michael@crosbymichael.com> (github: crosbymichael)
Hi, I will comment on this one even when is really old because I'm getting some deprecation message about this syntax. I basically have this: LABEL \
maintainer="Me" \
# Some comment about the next line
description="Some image" And I get this (docker-ce 17.09.0):
I search for information about how line continuation and comments should be handled and couldn't find anything relevant except for this issue. I tried adding a Given that is recommended everywhere to use line continuations with Should I create a new issue about this? |
@leandro-lucarella-sociomantic same here, unsure if this is a regression or not? |
Ah, nice! Do you know if this will be part of a patch release or we'll have to wait until next full release to stop getting the deprecation messages? |
I just commented out one line of a RUN command with a set of 's on the end (and when that errored out, moved the commented out line to just before the RUN
and the line continuation thus commented out the entire set :)
so I went from
to
which quietly works ? to
and therefore the RUN was completely commented out.
We can either define this as 'works as intended' and so I'll document it, or decide that its a little too surprising (given that its a very hidden omission) and thus process the
#
before the\
@shykes @crosbymichael opinions?
The text was updated successfully, but these errors were encountered: