-
Notifications
You must be signed in to change notification settings - Fork 614
[email protected] #6447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
engflow-automation-public
wants to merge
1
commit into
bazelbuild:main
from
EngFlow:gazelle_cc-v0.3.0
Closed
[email protected] #6447
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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", | ||
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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
14
modules/gazelle_cc/0.3.0/patches/module_dot_bazel_version.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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] | ||
| 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: | ||
| - //... | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,7 +18,8 @@ | |
| "github:EngFlow/gazelle_cc" | ||
| ], | ||
| "versions": [ | ||
| "0.1.0" | ||
| "0.1.0", | ||
| "0.3.0" | ||
| ], | ||
| "yanked_versions": {} | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Bazel versions
8.xand9.xare 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 therollingversion to ensure future compatibility.There was a problem hiding this comment.
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.