Skip to content
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

[email protected] #3467

Merged
merged 1 commit into from
Dec 20, 2024
Merged
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
27 changes: 27 additions & 0 deletions modules/depend_on_what_you_use/0.6.0/MODULE.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module(
name = "depend_on_what_you_use",
version = "0.6.0",
# Keep in sync with setup_step_2.bzl, .bcr/presubmit.yml and the README.md
bazel_compatibility = [">=6.0.0"],
)

bazel_dep(name = "rules_cc", version = "0.0.15")
bazel_dep(name = "rules_python", version = "0.27.1")
bazel_dep(name = "bazel_skylib", version = "1.7.1")

non_module_dependencies = use_extension("//third_party:extensions.bzl", "non_module_dependencies")
use_repo(non_module_dependencies, "dwyu_pcpp")

###
### Development Dependencies
###

bazel_dep(name = "aspect_bazel_lib", version = "2.10.0", dev_dependency = True)
bazel_dep(name = "stardoc", version = "0.7.2", dev_dependency = True)

python = use_extension(
"@rules_python//python/extensions:python.bzl",
"python",
dev_dependency = True,
)
python.toolchain(python_version = "3.8")
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
--- examples/test.py
+++ examples/test.py
@@ -144,7 +144,7 @@ def main(legacy_workspace: bool) -> int:
We ony look for the return code of a command. If a command fails as expected we do not analyze if it fails for the
correct reason. These kind of detailed testing is done in the aspect integration tests.
"""
- bazel_binary = get_bazel_binary()
+ bazel_binary = "bazel"

results = [
execute_example(example=ex, bazel_bin=bazel_binary, legacy_workspace=legacy_workspace) for ex in EXAMPLES
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- MODULE.bazel
+++ MODULE.bazel
@@ -1,6 +1,6 @@
module(
name = "depend_on_what_you_use",
- version = "0.0.0",
+ version = "0.6.0",
# Keep in sync with setup_step_2.bzl, .bcr/presubmit.yml and the README.md
bazel_compatibility = [">=6.0.0"],
)
12 changes: 12 additions & 0 deletions modules/depend_on_what_you_use/0.6.0/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
bcr_test_module:
module_path: "examples"
matrix:
platform: [ "macos", "ubuntu2204", "windows" ]
bazel: [ "6.x", "7.x", "8.x", "rolling" ]
tasks:
verify_examples:
name: "Verify examples"
platform: ${{ platform }}
bazel: ${{ bazel }}
shell_commands:
- python test.py
10 changes: 10 additions & 0 deletions modules/depend_on_what_you_use/0.6.0/source.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"url": "https://github.com/martis42/depend_on_what_you_use/releases/download/0.6.0/depend_on_what_you_use-0.6.0.tar.gz",
"integrity": "sha256-K94gzsmT+tn5mJqqwGkAGI2fzJ8jwd46WzJsDTHMFFc=",
"strip_prefix": "depend_on_what_you_use-0.6.0",
"patch_strip": 0,
"patches": {
"compatibility_to_bcr_ci.patch": "sha256-OuMAHAb8I9unch8YR+9XflfUpV7rNenu4S07WFti5Vw=",
"module_dot_bazel.patch": "sha256-mwO4z+8D3I9CHOjS64Jk0bvHYisoIlYu5IHNj2tXk/8="
}
}
3 changes: 2 additions & 1 deletion modules/depend_on_what_you_use/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"0.2.0",
"0.3.0",
"0.4.0",
"0.5.0"
"0.5.0",
"0.6.0"
],
"yanked_versions": {}
}
Loading