diff --git a/pkg/compose/build.go b/pkg/compose/build.go index 024795cf2..bc3d61f1d 100644 --- a/pkg/compose/build.go +++ b/pkg/compose/build.go @@ -20,7 +20,6 @@ import ( "context" "fmt" "os" - "path" "path/filepath" "github.com/compose-spec/compose-go/types" @@ -289,7 +288,7 @@ func mergeArgs(m ...types.Mapping) types.Mapping { } func dockerFilePath(context string, dockerfile string) string { - if urlutil.IsGitURL(context) || path.IsAbs(dockerfile) { + if urlutil.IsGitURL(context) || filepath.IsAbs(dockerfile) { return dockerfile } return filepath.Join(context, dockerfile)