Skip to content

Commit 8a03421

Browse files
1 parent 04c2b14 commit 8a03421

File tree

6 files changed

+130
-0
lines changed

6 files changed

+130
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
"aspect-build/bazel-lib"
2+
3+
module(
4+
name = "aspect_bazel_lib",
5+
version = "1.41.0",
6+
compatibility_level = 1,
7+
)
8+
9+
# Lower-bound versions of our dependencies
10+
bazel_dep(name = "bazel_skylib", version = "1.4.2")
11+
bazel_dep(name = "platforms", version = "0.0.7")
12+
13+
# 0.5.4 is the first version with bzlmod support
14+
bazel_dep(name = "stardoc", version = "0.5.4", repo_name = "io_bazel_stardoc")
15+
16+
bazel_lib_toolchains = use_extension("@aspect_bazel_lib//lib:extensions.bzl", "toolchains")
17+
bazel_lib_toolchains.copy_directory()
18+
bazel_lib_toolchains.copy_to_directory()
19+
bazel_lib_toolchains.jq()
20+
bazel_lib_toolchains.yq()
21+
bazel_lib_toolchains.coreutils()
22+
bazel_lib_toolchains.expand_template()
23+
use_repo(bazel_lib_toolchains, "copy_directory_toolchains", "copy_to_directory_toolchains", "coreutils_toolchains", "expand_template_toolchains", "jq_toolchains", "yq_toolchains")
24+
25+
register_toolchains(
26+
"@copy_directory_toolchains//:all",
27+
"@copy_to_directory_toolchains//:all",
28+
"@jq_toolchains//:all",
29+
"@yq_toolchains//:all",
30+
"@coreutils_toolchains//:all",
31+
"@expand_template_toolchains//:all",
32+
)
33+
34+
# To allow /tools to be built from source
35+
# NOTE: when publishing to BCR, we patch this to be dev_dependency, as we publish pre-built binaries
36+
# along with our releases.
37+
38+
bazel_dep(
39+
name = "gazelle",
40+
version = "0.33.0",
41+
dev_dependency = True
42+
)
43+
bazel_dep(
44+
name = "rules_go",
45+
version = "0.41.0",
46+
repo_name = "io_bazel_rules_go",
47+
dev_dependency = True
48+
)
49+
50+
go_deps = use_extension(
51+
"@gazelle//:extensions.bzl",
52+
"go_deps",
53+
dev_dependency = True
54+
)
55+
go_deps.from_file(go_mod = "//:go.mod")
56+
use_repo(
57+
go_deps,
58+
"com_github_bmatcuk_doublestar_v4",
59+
"org_golang_x_exp",
60+
)
61+
62+
# Development-only dependencies
63+
64+
bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.4.1", dev_dependency = True)
65+
bazel_dep(name = "buildifier_prebuilt", version = "6.3.3", dev_dependency = True)
66+
bazel_dep(name = "bazel_features", version = "0.1.0", dev_dependency = True)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
diff --git a/MODULE.bazel b/MODULE.bazel
2+
index 07a6eff..26702ad 100644
3+
--- a/MODULE.bazel
4+
+++ b/MODULE.bazel
5+
@@ -34,19 +34,19 @@ register_toolchains(
6+
bazel_dep(
7+
name = "gazelle",
8+
version = "0.33.0",
9+
- # In released versions: dev_dependency = True
10+
+ dev_dependency = True
11+
)
12+
bazel_dep(
13+
name = "rules_go",
14+
version = "0.41.0",
15+
repo_name = "io_bazel_rules_go",
16+
- # In released versions: dev_dependency = True
17+
+ dev_dependency = True
18+
)
19+
20+
go_deps = use_extension(
21+
"@gazelle//:extensions.bzl",
22+
"go_deps",
23+
- # In released versions: dev_dependency = True
24+
+ dev_dependency = True
25+
)
26+
go_deps.from_file(go_mod = "//:go.mod")
27+
use_repo(
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
===================================================================
2+
--- a/MODULE.bazel
3+
+++ b/MODULE.bazel
4+
@@ -1,9 +1,9 @@
5+
"aspect-build/bazel-lib"
6+
7+
module(
8+
name = "aspect_bazel_lib",
9+
- version = "0.0.0",
10+
+ version = "1.41.0",
11+
compatibility_level = 1,
12+
)
13+
14+
# Lower-bound versions of our dependencies
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
bcr_test_module:
2+
module_path: "e2e/smoke"
3+
matrix:
4+
platform: ["debian10", "macos", "ubuntu2004", "windows"]
5+
bazel: ["7.x", "6.x"]
6+
tasks:
7+
run_tests:
8+
name: "Run test module"
9+
platform: ${{ platform }}
10+
bazel: ${{ bazel }}
11+
test_targets:
12+
- "//..."
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"integrity": "sha256-jnpRxruDUCP8p74vBNaIVkhprU35XWxWyi2tzMP5APM=",
3+
"strip_prefix": "bazel-lib-1.41.0",
4+
"url": "https://github.com/aspect-build/bazel-lib/releases/download/v1.41.0/bazel-lib-v1.41.0.tar.gz",
5+
"patches": {
6+
"go_dev_dep.patch": "sha256-dEFxvx2hBB/tOWlknfRHRXNCdvYpvrxsYHWaMGF2QgA=",
7+
"module_dot_bazel_version.patch": "sha256-nyfPZJQ/Vyo96bOOp/Iz7V9s/UA4pNZcuh+epII3D04="
8+
},
9+
"patch_strip": 1
10+
}

modules/aspect_bazel_lib/metadata.json

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@
9393
"1.40.0",
9494
"1.40.2",
9595
"1.40.3",
96+
"1.41.0",
9697
"2.0.0-beta0",
9798
"2.0.0-beta1",
9899
"2.0.0-rc0",

0 commit comments

Comments
 (0)