1
0
mirror of https://github.com/go-task/task.git synced 2025-11-23 22:24:45 +02:00

fix: properly resolve remote entrypoints (#2438)

This commit is contained in:
Skip Baney
2025-10-12 06:29:57 -05:00
committed by GitHub
parent c3e410e95a
commit 348158a5f6
5 changed files with 28 additions and 7 deletions

View File

@@ -72,6 +72,16 @@ func NewNode(
return node, err
}
func isRemoteEntrypoint(entrypoint string) bool {
scheme, _ := getScheme(entrypoint)
switch scheme {
case "git", "http", "https":
return true
default:
return false
}
}
func getScheme(uri string) (string, error) {
u, err := giturls.Parse(uri)
if u == nil {