Skip to content

Commit 0748633

Browse files
authored
1 parent d397bfd commit 0748633

File tree

5 files changed

+72
-7
lines changed

5 files changed

+72
-7
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
module(
2+
name = "toolchains_buildbuddy",
3+
repo_name = "io_buildbuddy_buildbuddy_toolchain",
4+
version = "0.0.4",
5+
)
6+
7+
bazel_dep(name = "rules_cc", version = "0.0.17")
8+
bazel_dep(name = "rules_java", version = "8.16.1")
9+
bazel_dep(name = "platforms", version = "0.0.10")
10+
11+
bazel_dep(
12+
name = "rules_bazel_integration_test",
13+
version = "0.34.0",
14+
dev_dependency = True,
15+
)
16+
bazel_dep(
17+
name = "buildifier_prebuilt",
18+
version = "8.2.0.2",
19+
dev_dependency = True,
20+
)
21+
22+
buildbuddy = use_extension("//:extensions.bzl", "buildbuddy")
23+
use_repo(buildbuddy, "buildbuddy_toolchain")
24+
25+
register_toolchains(
26+
"//toolchains/cc:all",
27+
)
28+
29+
bazel_binaries = use_extension(
30+
"@rules_bazel_integration_test//:extensions.bzl",
31+
"bazel_binaries",
32+
dev_dependency = True,
33+
)
34+
bazel_binaries.download(version_file = "//:.bazelversion")
35+
use_repo(bazel_binaries, "bazel_binaries", "bazel_binaries_bazelisk", "build_bazel_bazel_.bazelversion")
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
===================================================================
2+
--- a/MODULE.bazel
3+
+++ b/MODULE.bazel
4+
@@ -1,7 +1,8 @@
5+
module(
6+
name = "toolchains_buildbuddy",
7+
repo_name = "io_buildbuddy_buildbuddy_toolchain",
8+
+ version = "0.0.4",
9+
)
10+
11+
bazel_dep(name = "rules_cc", version = "0.0.17")
12+
bazel_dep(name = "rules_java", version = "8.16.1")
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# We recommend included a bcr test workspace that exercises your ruleset with bzlmod.
2+
# For an example, see https://github.com/aspect-build/bazel-lib/tree/main/e2e/bzlmod.
3+
bcr_test_module:
4+
module_path: "examples/bzlmod"
5+
matrix:
6+
platform: ["ubuntu2004"]
7+
bazel: [7.x]
8+
tasks:
9+
build_module:
10+
name: "build module"
11+
platform: ${{ platform }}
12+
bazel: ${{ bazel }}
13+
build_targets:
14+
- "//..."
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"integrity": "sha256-4rtmioGI2dzQey1h0fw7z2exUCCelNv0Uff7uwrQihc=",
3+
"strip_prefix": "buildbuddy-toolchain-v0.0.4",
4+
"url": "https://github.com/buildbuddy-io/buildbuddy-toolchain/releases/download/v0.0.4/buildbuddy-toolchain-v0.0.4.tar.gz",
5+
"patches": {
6+
"module_dot_bazel_version.patch": "sha256-PNFSHaTHNSC9goAuQVK7ZgnWi74czvXAm7REXtDRNhE="
7+
},
8+
"patch_strip": 1
9+
}

modules/toolchains_buildbuddy/metadata.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,6 @@
1818
"github": "dan-stowell",
1919
"name": "Dan Stowell",
2020
"github_user_id": 56944708
21-
},
22-
{
23-
"email": "[email protected]",
24-
"github": "tyler-french",
25-
"name": "Tyler French",
26-
"github_user_id": 66684063
2721
}
2822
],
2923
"repository": [
@@ -32,7 +26,8 @@
3226
"versions": [
3327
"0.0.1",
3428
"0.0.2",
35-
"0.0.3"
29+
"0.0.3",
30+
"0.0.4"
3631
],
3732
"yanked_versions": {}
3833
}

0 commit comments

Comments
 (0)