diff --git a/deps.bzl b/deps.bzl index 641c1b57f..d5d48c897 100644 --- a/deps.bzl +++ b/deps.bzl @@ -121,8 +121,8 @@ def gazelle_dependencies( go_repository, name = "com_github_bmatcuk_doublestar_v4", importpath = "github.com/bmatcuk/doublestar/v4", - sum = "h1:FH9SifrbvJhnlQpztAx++wlkk70QBf0iBWDwNy7PA4I=", - version = "v4.6.1", + sum = "h1:fdDeAqgT47acgwd9bd9HxJRDmc9UAmPpc+2m0CXv75Q=", + version = "v4.7.1", ) _maybe( go_repository, diff --git a/go.mod b/go.mod index b7cb1f519..d4a9b8e20 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ toolchain go1.22.7 require ( github.com/bazelbuild/buildtools v0.0.0-20240827154017-dd10159baa91 github.com/bazelbuild/rules_go v0.50.1 - github.com/bmatcuk/doublestar/v4 v4.6.1 + github.com/bmatcuk/doublestar/v4 v4.7.1 github.com/fsnotify/fsnotify v1.7.0 github.com/google/go-cmp v0.6.0 github.com/pmezard/go-difflib v1.0.0 diff --git a/go.sum b/go.sum index 77b97707a..c2ce87aba 100644 --- a/go.sum +++ b/go.sum @@ -2,8 +2,8 @@ github.com/bazelbuild/buildtools v0.0.0-20240827154017-dd10159baa91 h1:/wpuwyWvp github.com/bazelbuild/buildtools v0.0.0-20240827154017-dd10159baa91/go.mod h1:PLNUetjLa77TCCziPsz0EI8a6CUxgC+1jgmWv0H25tg= github.com/bazelbuild/rules_go v0.50.1 h1:/BUvuaB8MEiUA2oLPPCGtuw5V+doAYyiGTFyoSWlkrw= github.com/bazelbuild/rules_go v0.50.1/go.mod h1:Dhcz716Kqg1RHNWos+N6MlXNkjNP2EwZQ0LukRKJfMs= -github.com/bmatcuk/doublestar/v4 v4.6.1 h1:FH9SifrbvJhnlQpztAx++wlkk70QBf0iBWDwNy7PA4I= -github.com/bmatcuk/doublestar/v4 v4.6.1/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc= +github.com/bmatcuk/doublestar/v4 v4.7.1 h1:fdDeAqgT47acgwd9bd9HxJRDmc9UAmPpc+2m0CXv75Q= +github.com/bmatcuk/doublestar/v4 v4.7.1/go.mod h1:xBQ8jztBU6kakFMg+8WGxn0c6z1fTSPVIjEY1Wr7jzc= github.com/fsnotify/fsnotify v1.7.0 h1:8JEhPFa5W2WU7YfeZzPNqzMP6Lwt7L2715Ggo0nosvA= github.com/fsnotify/fsnotify v1.7.0/go.mod h1:40Bi/Hjc2AVfZrqy+aj+yEI+/bRxZnMJyTJwOpGvigM= github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= diff --git a/tests/bcr/go_mod/go.mod b/tests/bcr/go_mod/go.mod index 42175e005..a9aafccec 100644 --- a/tests/bcr/go_mod/go.mod +++ b/tests/bcr/go_mod/go.mod @@ -4,13 +4,14 @@ module github.com/bazelbuild/bazel-gazelle/tests/bcr/go_mod go 1.21.5 // Validate go.mod replace directives can be properly used: -replace github.com/bmatcuk/doublestar/v4 => github.com/bmatcuk/doublestar v1.3.4 +replace github.com/bmatcuk/doublestar/v4 => github.com/bmatcuk/doublestar/v4 v4.7.1 require ( example.org/hello v1.0.0 github.com/DataDog/sketches-go v1.4.1 github.com/bazelbuild/buildtools v0.0.0-20230317132445-9c3c1fc0106e github.com/bazelbuild/rules_go v0.39.1 + // NOTE: keep <4.7.0 to test the 'replace' github.com/bmatcuk/doublestar/v4 v4.6.0 github.com/cloudflare/circl v1.3.7 github.com/envoyproxy/protoc-gen-validate v1.0.1 diff --git a/tests/bcr/go_mod/pkg/pkg_test.go b/tests/bcr/go_mod/pkg/pkg_test.go index f742a3d34..1956fdee4 100644 --- a/tests/bcr/go_mod/pkg/pkg_test.go +++ b/tests/bcr/go_mod/pkg/pkg_test.go @@ -21,11 +21,10 @@ import ( ) func TestReplace(t *testing.T) { - // doublestar.StandardOS does NOT exist in doublestar/v4 - // See: https://pkg.go.dev/github.com/bmatcuk/doublestar#OS + // doublestar.MatchUnvalidated does NOT exist in doublestar github.com/bmatcuk/doublestar v1.3.4 +replace github.com/bmatcuk/doublestar/v4 => github.com/bmatcuk/doublestar/v4 v4.7.1 diff --git a/tests/bcr/go_work/pkg/pkg_test.go b/tests/bcr/go_work/pkg/pkg_test.go index e81dcc076..eb27709ee 100644 --- a/tests/bcr/go_work/pkg/pkg_test.go +++ b/tests/bcr/go_work/pkg/pkg_test.go @@ -20,11 +20,10 @@ import ( ) func TestReplace(t *testing.T) { - // doublestar.StandardOS does NOT exist in doublestar/v4 - // See: https://pkg.go.dev/github.com/bmatcuk/doublestar#OS + // doublestar.MatchUnvalidated does NOT exist in doublestar