From 941174fb90a7bdb0eef036722de5a7c1aa5eb8dc Mon Sep 17 00:00:00 2001 From: "EngFlow Inc." Date: Fri, 7 Nov 2025 03:33:47 +0000 Subject: [PATCH] gazelle_cc@0.3.0 --- modules/gazelle_cc/0.3.0/MODULE.bazel | 26 +++++++++++++++++++ modules/gazelle_cc/0.3.0/attestations.json | 17 ++++++++++++ .../patches/module_dot_bazel_version.patch | 14 ++++++++++ modules/gazelle_cc/0.3.0/presubmit.yml | 17 ++++++++++++ modules/gazelle_cc/0.3.0/source.json | 9 +++++++ modules/gazelle_cc/metadata.json | 3 ++- 6 files changed, 85 insertions(+), 1 deletion(-) create mode 100644 modules/gazelle_cc/0.3.0/MODULE.bazel create mode 100644 modules/gazelle_cc/0.3.0/attestations.json create mode 100644 modules/gazelle_cc/0.3.0/patches/module_dot_bazel_version.patch create mode 100644 modules/gazelle_cc/0.3.0/presubmit.yml create mode 100644 modules/gazelle_cc/0.3.0/source.json diff --git a/modules/gazelle_cc/0.3.0/MODULE.bazel b/modules/gazelle_cc/0.3.0/MODULE.bazel new file mode 100644 index 00000000000..715315addb0 --- /dev/null +++ b/modules/gazelle_cc/0.3.0/MODULE.bazel @@ -0,0 +1,26 @@ +"""Bazel Gazelle extension for rules_cc""" + +module(name = "gazelle_cc", + version = "0.3.0", +) + +bazel_dep(name = "gazelle", version = "0.46.0") + +# The following deps are using the same versions as upstream gazelle +bazel_dep(name = "rules_go", version = "0.58.3") +bazel_dep(name = "rules_proto", version = "7.1.0") +bazel_dep(name = "bazel_skylib", version = "1.8.1") +bazel_dep(name = "package_metadata", version = "0.0.5") + +go_sdk = use_extension("@rules_go//go:extensions.bzl", "go_sdk") +go_sdk.download(version = "1.24.0") + +go_deps = use_extension("@gazelle//:extensions.bzl", "go_deps") +go_deps.from_file(go_mod = "//:go.mod") +use_repo( + go_deps, + "com_github_bazelbuild_buildtools", + "com_github_bmatcuk_doublestar_v4", + "com_github_stretchr_testify", + "org_golang_google_protobuf", +) diff --git a/modules/gazelle_cc/0.3.0/attestations.json b/modules/gazelle_cc/0.3.0/attestations.json new file mode 100644 index 00000000000..8c5188465b8 --- /dev/null +++ b/modules/gazelle_cc/0.3.0/attestations.json @@ -0,0 +1,17 @@ +{ + "mediaType": "application/vnd.build.bazel.registry.attestation+json;version=1.0.0", + "attestations": { + "source.json": { + "url": "https://github.com/EngFlow/gazelle_cc/releases/download/v0.3.0/source.json.intoto.jsonl", + "integrity": "sha256-wcGEPWSU+9P1AqN7CpyeKJE0a+2SWW7Ls6qyuiWGKmw=" + }, + "MODULE.bazel": { + "url": "https://github.com/EngFlow/gazelle_cc/releases/download/v0.3.0/MODULE.bazel.intoto.jsonl", + "integrity": "sha256-mShvSZSqbwCAdLFFKyhtI/kauUhqlTR6sbvFahJXys0=" + }, + "gazelle_cc-v0.3.0.tar.gz": { + "url": "https://github.com/EngFlow/gazelle_cc/releases/download/v0.3.0/gazelle_cc-v0.3.0.tar.gz.intoto.jsonl", + "integrity": "sha256-xIme1ljeq85vbciRJOjmpAgpdAgdMaUJcyp3yyVmP9o=" + } + } +} diff --git a/modules/gazelle_cc/0.3.0/patches/module_dot_bazel_version.patch b/modules/gazelle_cc/0.3.0/patches/module_dot_bazel_version.patch new file mode 100644 index 00000000000..bffc19249a7 --- /dev/null +++ b/modules/gazelle_cc/0.3.0/patches/module_dot_bazel_version.patch @@ -0,0 +1,14 @@ +=================================================================== +--- a/MODULE.bazel ++++ b/MODULE.bazel +@@ -1,7 +1,9 @@ + """Bazel Gazelle extension for rules_cc""" + +-module(name = "gazelle_cc") ++module(name = "gazelle_cc", ++ version = "0.3.0", ++) + + bazel_dep(name = "gazelle", version = "0.46.0") + + # The following deps are using the same versions as upstream gazelle diff --git a/modules/gazelle_cc/0.3.0/presubmit.yml b/modules/gazelle_cc/0.3.0/presubmit.yml new file mode 100644 index 00000000000..9534fc58455 --- /dev/null +++ b/modules/gazelle_cc/0.3.0/presubmit.yml @@ -0,0 +1,17 @@ +bcr_test_module: + module_path: "example/bzlmod" + matrix: + platform: ["macos", "ubuntu2004"] + bazel: [7.x, 8.x, 9.x] + tasks: + run_tests: + name: "Build and test the example module" + platform: ${{ platform }} + bazel: ${{ bazel }} + shell_commands: + # Generate the BUILD files for the test module using Gazelle + - bazel run //:gazelle + build_targets: + - //... + test_targets: + - //... diff --git a/modules/gazelle_cc/0.3.0/source.json b/modules/gazelle_cc/0.3.0/source.json new file mode 100644 index 00000000000..8581a8c5ed8 --- /dev/null +++ b/modules/gazelle_cc/0.3.0/source.json @@ -0,0 +1,9 @@ +{ + "integrity": "sha256-qa2/h9NTB7flg27b+F/HARvKx/qiWgWrURVmnYq5GWY=", + "strip_prefix": "gazelle_cc-0.3.0", + "url": "https://github.com/EngFlow/gazelle_cc/releases/download/v0.3.0/gazelle_cc-v0.3.0.tar.gz", + "patches": { + "module_dot_bazel_version.patch": "sha256-vPgq5PJeRI3ohvlj6plvlPR6BcsXgd9+ldZynx2c4/4=" + }, + "patch_strip": 1 +} diff --git a/modules/gazelle_cc/metadata.json b/modules/gazelle_cc/metadata.json index e6b4bf97410..339b96b39f5 100644 --- a/modules/gazelle_cc/metadata.json +++ b/modules/gazelle_cc/metadata.json @@ -18,7 +18,8 @@ "github:EngFlow/gazelle_cc" ], "versions": [ - "0.1.0" + "0.1.0", + "0.3.0" ], "yanked_versions": {} }