diff --git a/modules/gazelle/0.34.0/MODULE.bazel b/modules/gazelle/0.34.0/MODULE.bazel new file mode 100644 index 00000000000..e272b190d44 --- /dev/null +++ b/modules/gazelle/0.34.0/MODULE.bazel @@ -0,0 +1,54 @@ +module( + name = "gazelle", + version = "0.34.0", + repo_name = "bazel_gazelle", +) + +bazel_dep(name = "bazel_skylib", version = "1.3.0") +bazel_dep(name = "protobuf", version = "3.19.6", repo_name = "com_google_protobuf") +bazel_dep(name = "rules_go", version = "0.42.0", repo_name = "io_bazel_rules_go") +bazel_dep(name = "rules_proto", version = "4.0.0") + +go_sdk = use_extension("@io_bazel_rules_go//go:extensions.bzl", "go_sdk") + +# Known to exist since it is instantiated by rules_go itself. +use_repo( + go_sdk, + "go_host_compatible_sdk_label", +) + +non_module_deps = use_extension("//internal/bzlmod:non_module_deps.bzl", "non_module_deps") +use_repo( + non_module_deps, + "bazel_gazelle_go_repository_cache", + "bazel_gazelle_go_repository_tools", + "bazel_gazelle_is_bazel_module", +) + +go_deps = use_extension("//:extensions.bzl", "go_deps") +go_deps.from_file(go_mod = "//:go.mod") + +# golang.org/x/tools is not a direct dependency of the go code anymore +# but bazel buildtools and nogo depend on it. +go_deps.module( + path = "golang.org/x/tools", + sum = "h1:Iey4qkscZuv0VvIt8E0neZjtPVQFSc870HQ448QgEmQ=", + version = "v0.13.0", +) +use_repo( + go_deps, + "com_github_bazelbuild_buildtools", + "com_github_bmatcuk_doublestar_v4", + "com_github_fsnotify_fsnotify", + "com_github_google_go_cmp", + "com_github_pmezard_go_difflib", + "org_golang_x_mod", + "org_golang_x_sync", + "org_golang_x_tools", + "org_golang_x_tools_go_vcs", + # Referenced by `gazelle_binary`. + "bazel_gazelle_go_repository_config", +) + +bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.4.1", dev_dependency = True) +bazel_dep(name = "stardoc", version = "0.5.1", dev_dependency = True, repo_name = "io_bazel_stardoc") diff --git a/modules/gazelle/0.34.0/presubmit.yml b/modules/gazelle/0.34.0/presubmit.yml new file mode 100644 index 00000000000..d95652b262c --- /dev/null +++ b/modules/gazelle/0.34.0/presubmit.yml @@ -0,0 +1,24 @@ +bcr_test_module: + module_path: tests/bcr + matrix: + platform: + - debian10 + - ubuntu2004 + - macos + - windows + tasks: + run_test_module: + name: Run test module + platform: ${{ platform }} + shell_commands: + # Regenerate the BUILD file for the test module using Gazelle. + - rm pkg/BUILD.bazel + - bazel run //:gazelle + build_targets: + - //... + - //:gazelle + test_targets: + # Specify this target explicitly to verify that Gazelle generated it correctly. + - "//pkg:pkg_test" + - "//..." + - "@test_dep//..." diff --git a/modules/gazelle/0.34.0/source.json b/modules/gazelle/0.34.0/source.json new file mode 100644 index 00000000000..5333e8a4e82 --- /dev/null +++ b/modules/gazelle/0.34.0/source.json @@ -0,0 +1,5 @@ +{ + "integrity": "sha256-tzh/cu+1n4duTarkLx05EtDUVWPqx8sj0d4LCUq1iM8=", + "strip_prefix": "", + "url": "https://github.com/bazelbuild/bazel-gazelle/releases/download/v0.34.0/bazel-gazelle-v0.34.0.tar.gz" +} diff --git a/modules/gazelle/metadata.json b/modules/gazelle/metadata.json index 19051ec9f34..3896330e9bf 100644 --- a/modules/gazelle/metadata.json +++ b/modules/gazelle/metadata.json @@ -29,7 +29,8 @@ "0.31.0", "0.31.1", "0.32.0", - "0.33.0" + "0.33.0", + "0.34.0" ], "yanked_versions": { "0.26.0": "Obsolete experimental version that emits debug prints. Update to 0.30.0 or higher",