From 2dba4e1386883ae411bf4bee98de8c9e16167c09 Mon Sep 17 00:00:00 2001 From: Arnaud Porterie Date: Mon, 2 Feb 2015 23:42:18 -0800 Subject: [PATCH] Fix client-side validation of Dockerfile path Arguments to `filepath.Rel` were reversed, making all builder tests to fail. Signed-off-by: Arnaud Porterie --- api/client/commands.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/client/commands.go b/api/client/commands.go index d60c6d482..c4ce5e01f 100644 --- a/api/client/commands.go +++ b/api/client/commands.go @@ -169,7 +169,7 @@ func (cli *DockerCli) CmdBuild(args ...string) error { } // Now reset the dockerfileName to be relative to the build context - *dockerfileName, err = filepath.Rel(filename, absRoot) + *dockerfileName, err = filepath.Rel(absRoot, filename) if err != nil { return err }