Skip to content

Commit 8b0e2ec

Browse files
committed
Added checks in build path for docker-compose import
So when build path is resolved, or when it is being converted from relative path to absolute path, a check has been added which checks if the path is already absolute, if it is, no further operations performed and value of Build path is kept unaltered. Fixes openshift#9815
1 parent aa6e2a6 commit 8b0e2ec

File tree

1 file changed

+4
-0
lines changed
  • third_party/github.com/docker/libcompose/project

1 file changed

+4
-0
lines changed

third_party/github.com/docker/libcompose/project/merge.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"bytes"
66
"fmt"
77
"path"
8+
"path/filepath"
89
"strings"
910

1011
"github.com/Sirupsen/logrus"
@@ -167,6 +168,9 @@ func resolveBuild(inFile string, serviceData rawService) (rawService, error) {
167168
return serviceData, nil
168169
}
169170
}
171+
if filepath.IsAbs(build) {
172+
return serviceData, nil
173+
}
170174

171175
current := path.Dir(inFile)
172176

0 commit comments

Comments
 (0)