Skip to content

Commit

Permalink
gazelle@0.34.0 (#1106)
Browse files Browse the repository at this point in the history
* Publish bazelbuild/bazel-gazelle@v0.34.0

* Remove centos7

* Keep maintainers

---------

Co-authored-by: Fabian Meumertzheim <fabian@meumertzhe.im>
  • Loading branch information
publish-to-bcr-bot[bot] and fmeum committed Nov 8, 2023
1 parent 4bb177a commit 43d56a5
Show file tree
Hide file tree
Showing 4 changed files with 85 additions and 1 deletion.
54 changes: 54 additions & 0 deletions 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")
24 changes: 24 additions & 0 deletions 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//..."
5 changes: 5 additions & 0 deletions 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"
}
3 changes: 2 additions & 1 deletion modules/gazelle/metadata.json
Expand Up @@ -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",
Expand Down

0 comments on commit 43d56a5

Please sign in to comment.