Skip to content

Commit a842522

Browse files
gloursndeloof
authored andcommitted
use filepath instead of path to check if the dockerfile path is abolute or not
Signed-off-by: Guillaume Lours <[email protected]>
1 parent bc1160d commit a842522

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/compose/build.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"context"
2121
"fmt"
2222
"os"
23-
"path"
2423
"path/filepath"
2524

2625
"github.com/compose-spec/compose-go/types"
@@ -289,7 +288,7 @@ func mergeArgs(m ...types.Mapping) types.Mapping {
289288
}
290289

291290
func dockerFilePath(context string, dockerfile string) string {
292-
if urlutil.IsGitURL(context) || path.IsAbs(dockerfile) {
291+
if urlutil.IsGitURL(context) || filepath.IsAbs(dockerfile) {
293292
return dockerfile
294293
}
295294
return filepath.Join(context, dockerfile)

0 commit comments

Comments
 (0)