Open heasterday opened 3 years ago
This still happens, but the crash is during execution of the RUN
instruction, not parsing.
I’m not sure if it’s the whole problem, but one thing that’s wrong is that the double quotes and backslash are being parsed literally, i.e., it’s interpreting it as WORD
instead of PARSED_STRING
:
start
dockerfile
from_
image_ref centos:8
arg
arg_equals
EMPH
"\e[38;5;36m"
arg
arg_equals
foo
bar
arg
arg_equals
NEMPH
"\e[0m"
This was discovered in testing the flecsi's project's Dockefiles, specifically the CentOS 8 one. Two ARG directives in a row containing color codes cause failure:
Reproducer:
Error: