From 71357b495fb5f19ed37b5e0cf7a8515a9b743762 Mon Sep 17 00:00:00 2001 From: "Guillaume J. Charmes" Date: Wed, 29 May 2013 10:53:24 -0700 Subject: [PATCH] Fix issue with unknown instruction within docker build Upstream-commit: 6cbc7757b2b4d068a98287754da552028fd62212 Component: engine --- components/engine/buildfile.go | 1 + 1 file changed, 1 insertion(+) diff --git a/components/engine/buildfile.go b/components/engine/buildfile.go index 23f2f47172..b9ca5696d5 100644 --- a/components/engine/buildfile.go +++ b/components/engine/buildfile.go @@ -337,6 +337,7 @@ func (b *buildFile) Build(dockerfile, context io.Reader) (string, error) { method, exists := reflect.TypeOf(b).MethodByName("Cmd" + strings.ToUpper(instruction[:1]) + strings.ToLower(instruction[1:])) if !exists { fmt.Fprintf(b.out, "Skipping unknown instruction %s\n", strings.ToUpper(instruction)) + continue } ret := method.Func.Call([]reflect.Value{reflect.ValueOf(b), reflect.ValueOf(arguments)})[0].Interface() if ret != nil {