moby--moby/builder/dockerfile
Dennis Chen 7c0570473c Fix the target name issue for multi-stage build
This PR is trying to fix issue #36956.

The stage name is case-insensitive by design, so we should use
`strings.EqualFold()` as the comparison method to eliminate the
case sensitive noise.

Also we need to return a pre-defined error code order to avoid below
message like:
"FIXME: Got an API for which error does not match any expected type!!!:
failed to reach build target dev in Dockerfile"

Signed-off-by: Dennis Chen <dennis.chen@arm.com>
2018-05-01 10:28:40 +08:00
..
command
instructions Fix the target name issue for multi-stage build 2018-05-01 10:28:40 +08:00
parser
shell
buildargs.go
buildargs_test.go
builder.go Fix the target name issue for multi-stage build 2018-05-01 10:28:40 +08:00
builder_test.go
builder_unix.go
builder_windows.go
clientsession.go
containerbackend.go
copy.go
copy_test.go
copy_unix.go
copy_windows.go
dispatchers.go
dispatchers_test.go
dispatchers_unix.go
dispatchers_unix_test.go
dispatchers_windows.go
dispatchers_windows_test.go
evaluator.go
evaluator_test.go
imagecontext.go
imageprobe.go
internals.go
internals_linux.go
internals_linux_test.go
internals_test.go
internals_windows.go
internals_windows_test.go
metrics.go
mockbackend_test.go
utils_test.go