Skip to content

Commit d51613a

Browse files
committed
fix(node_git): always use unix path style
1 parent 12a26fa commit d51613a

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

taskfile/node_git.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import (
55
"fmt"
66
"net/url"
77
"os"
8+
"path"
89
"path/filepath"
910
"strings"
1011
"sync"
@@ -191,8 +192,8 @@ func (node *GitNode) ResolveEntrypoint(entrypoint string) (string, error) {
191192
return entrypoint, nil
192193
}
193194

194-
dir, _ := filepath.Split(node.path)
195-
resolvedEntrypoint := fmt.Sprintf("%s//%s", node.url, filepath.Join(dir, entrypoint))
195+
dir, _ := path.Split(node.path)
196+
resolvedEntrypoint := fmt.Sprintf("%s//%s", node.url, path.Join(dir, entrypoint))
196197
if node.ref != "" {
197198
return fmt.Sprintf("%s?ref=%s", resolvedEntrypoint, node.ref), nil
198199
}

0 commit comments

Comments
 (0)