1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/builder/dockerfile/instructions
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
..
bflag.go Add canonical import comment 2018-02-05 16:51:57 -05:00
bflag_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00
commands.go Fix the target name issue for multi-stage build 2018-05-01 10:28:40 +08:00
errors_unix.go Add canonical import comment 2018-02-05 16:51:57 -05:00
errors_windows.go Add canonical import comment 2018-02-05 16:51:57 -05:00
parse.go Builder: Review feedback 2018-03-19 14:29:36 -07:00
parse_test.go Merge pull request #35089 from Microsoft/jjh/fromplatformbuilder 2018-03-26 14:17:49 -07:00
support.go Add canonical import comment 2018-02-05 16:51:57 -05:00
support_test.go Add canonical import comment 2018-02-05 16:51:57 -05:00