|
@@ -20,7 +20,6 @@ import (
|
|
|
"context"
|
|
"context"
|
|
|
"fmt"
|
|
"fmt"
|
|
|
"os"
|
|
"os"
|
|
|
- "path"
|
|
|
|
|
"path/filepath"
|
|
"path/filepath"
|
|
|
|
|
|
|
|
"github.com/compose-spec/compose-go/types"
|
|
"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 {
|
|
func dockerFilePath(context string, dockerfile string) string {
|
|
|
- if urlutil.IsGitURL(context) || path.IsAbs(dockerfile) {
|
|
|
|
|
|
|
+ if urlutil.IsGitURL(context) || filepath.IsAbs(dockerfile) {
|
|
|
return dockerfile
|
|
return dockerfile
|
|
|
}
|
|
}
|
|
|
return filepath.Join(context, dockerfile)
|
|
return filepath.Join(context, dockerfile)
|