Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions modules/gazelle_cc/0.3.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -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",
)
17 changes: 17 additions & 0 deletions modules/gazelle_cc/0.3.0/attestations.json
Original file line number Diff line number Diff line change
@@ -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="
}
}
}
14 changes: 14 additions & 0 deletions modules/gazelle_cc/0.3.0/patches/module_dot_bazel_version.patch
Original file line number Diff line number Diff line change
@@ -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
17 changes: 17 additions & 0 deletions modules/gazelle_cc/0.3.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
bcr_test_module:
module_path: "example/bzlmod"
matrix:
platform: ["macos", "ubuntu2004"]
bazel: [7.x, 8.x, 9.x]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The Bazel versions 8.x and 9.x are not yet released and are not available in the Bazel Central Registry's CI environment. This will cause presubmit checks to fail. Please use currently available Bazel versions. It's common to test against the current LTS release (7.x) and the rolling version to ensure future compatibility.

    bazel: [7.x, "rolling"]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does 9.x not work? I thought 9.x would work.

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:
- //...
9 changes: 9 additions & 0 deletions modules/gazelle_cc/0.3.0/source.json
Original file line number Diff line number Diff line change
@@ -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
}
3 changes: 2 additions & 1 deletion modules/gazelle_cc/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"github:EngFlow/gazelle_cc"
],
"versions": [
"0.1.0"
"0.1.0",
"0.3.0"
],
"yanked_versions": {}
}
Loading