diff --git a/go.mod b/go.mod index 3cd35541f..7761ab79d 100644 --- a/go.mod +++ b/go.mod @@ -5,7 +5,7 @@ go 1.20 require ( github.com/ALTree/bigfloat v0.0.0-20220102081255-38c8b72a9924 github.com/alecthomas/chroma/v2 v2.7.0 - github.com/bmatcuk/doublestar v1.3.4 + github.com/bmatcuk/doublestar/v4 v4.6.0 github.com/disintegration/imaging v1.6.2 github.com/google/go-cmp v0.5.9 github.com/google/uuid v1.3.0 diff --git a/go.sum b/go.sum index 8b92d698c..e49db9de0 100644 --- a/go.sum +++ b/go.sum @@ -4,8 +4,8 @@ github.com/alecthomas/assert/v2 v2.2.1 h1:XivOgYcduV98QCahG8T5XTezV5bylXe+lBxLG2 github.com/alecthomas/chroma/v2 v2.7.0 h1:hm1rY6c/Ob4eGclpQ7X/A3yhqBOZNUTk9q+yhyLIViI= github.com/alecthomas/chroma/v2 v2.7.0/go.mod h1:yrkMI9807G1ROx13fhe1v6PN2DDeaR73L3d+1nmYQtw= github.com/alecthomas/repr v0.2.0 h1:HAzS41CIzNW5syS8Mf9UwXhNH1J9aix/BvDRf1Ml2Yk= -github.com/bmatcuk/doublestar v1.3.4 h1:gPypJ5xD31uhX6Tf54sDPUOBXTqKH4c9aPY66CyQrS0= -github.com/bmatcuk/doublestar v1.3.4/go.mod h1:wiQtGV+rzVYxB7WIlirSN++5HPtPlXEo9MEoZQC/PmE= +github.com/bmatcuk/doublestar/v4 v4.6.0 h1:HTuxyug8GyFbRkrffIpzNCSK4luc0TY3wzXvzIZhEXc= +github.com/bmatcuk/doublestar/v4 v4.6.0/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/kittens/ssh/config.go b/kittens/ssh/config.go index 7db7f9f47..d67d6d3d8 100644 --- a/kittens/ssh/config.go +++ b/kittens/ssh/config.go @@ -19,7 +19,7 @@ import ( "kitty/tools/utils/paths" "kitty/tools/utils/shlex" - "github.com/bmatcuk/doublestar" + "github.com/bmatcuk/doublestar/v4" "golang.org/x/sys/unix" ) @@ -145,7 +145,7 @@ func resolve_file_spec(spec string, is_glob bool) ([]string, error) { ans = paths_ctx.AbspathFromHome(ans) } if is_glob { - files, err := doublestar.Glob(ans) + files, err := doublestar.FilepathGlob(ans) if err != nil { return nil, fmt.Errorf("%s is not a valid glob pattern with error: %w", spec, err) } diff --git a/kittens/ssh/main.py b/kittens/ssh/main.py index ea9e790d2..c40a9a06b 100644 --- a/kittens/ssh/main.py +++ b/kittens/ssh/main.py @@ -20,7 +20,7 @@ def option_text() -> str: --glob type=bool-set Interpret file arguments as glob patterns. Globbing is based on -Based on standard wildcards with the addition that ``/**/`` matches any number of directories. +standard wildcards with the addition that ``/**/`` matches any number of directories. See the :link:`detailed syntax `.