From 1712742ab871b6407624c38505b0b8b6ac72d64c Mon Sep 17 00:00:00 2001 From: Eric Date: Thu, 23 Jul 2020 22:21:22 +0200 Subject: [PATCH] Partial fix for #2648 on Windows only. Signed-off-by: Eric Jonker --- cli/command/image/build/context.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/command/image/build/context.go b/cli/command/image/build/context.go index ccc7157f6a16..24e6b510bf29 100644 --- a/cli/command/image/build/context.go +++ b/cli/command/image/build/context.go @@ -280,7 +280,8 @@ func ResolveAndValidateContextPath(givenContextDir string) (string, error) { } // The context dir might be a symbolic link, so follow it to the actual - // target directory on *nix only. + // target directory. This still forgets the configured context directory, + // but leave this for now on *nix only. if runtime.GOOS != "windows" { absContextDir, err = filepath.EvalSymlinks(absContextDir) if err != nil {