1
0
mirror of https://github.com/go-task/task.git synced 2025-08-10 22:42:19 +02:00

fix: sources brace expansion (#2075)

This commit is contained in:
Pete Davison
2025-04-19 11:51:31 +01:00
committed by GitHub
parent f789c57624
commit a60c2ec3f8
10 changed files with 63 additions and 32 deletions

View File

@@ -4,8 +4,6 @@ import (
"os"
"sort"
"github.com/mattn/go-zglob"
"github.com/go-task/task/v3/internal/execext"
"github.com/go-task/task/v3/internal/filepathext"
"github.com/go-task/task/v3/taskfile/ast"
@@ -28,12 +26,7 @@ func Globs(dir string, globs []*ast.Glob) ([]string, error) {
func glob(dir string, g string) ([]string, error) {
g = filepathext.SmartJoin(dir, g)
g, err := execext.Expand(g)
if err != nil {
return nil, err
}
fs, err := zglob.GlobFollowSymlinks(g)
fs, err := execext.ExpandFields(g)
if err != nil {
return nil, err
}