Skip to content

Commit

Permalink
Partial fix for #2648 on Windows only.
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Jonker <ericnl@live.com>
  • Loading branch information
ericwj committed Jul 23, 2020
1 parent ede38f1 commit 1712742
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cli/command/image/build/context.go
Expand Up @@ -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 {
Expand Down

0 comments on commit 1712742

Please sign in to comment.