Skip to content

Commit 47880c8

Browse files
1 parent 79ebb7d commit 47880c8

File tree

6 files changed

+137
-0
lines changed

6 files changed

+137
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
"aspect-build/bazel-lib"
2+
3+
module(
4+
name = "aspect_bazel_lib",
5+
version = "1.42.1",
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.tar()
23+
bazel_lib_toolchains.expand_template()
24+
use_repo(bazel_lib_toolchains, "bsd_tar_toolchains", "copy_directory_toolchains", "copy_to_directory_toolchains", "coreutils_toolchains", "expand_template_toolchains", "jq_toolchains", "yq_toolchains")
25+
26+
register_toolchains(
27+
"@copy_directory_toolchains//:all",
28+
"@copy_to_directory_toolchains//:all",
29+
"@jq_toolchains//:all",
30+
"@yq_toolchains//:all",
31+
"@coreutils_toolchains//:all",
32+
"@expand_template_toolchains//:all",
33+
# Expand bsd_tar_toolchains
34+
"@bsd_tar_toolchains//:linux_amd64_toolchain",
35+
"@bsd_tar_toolchains//:linux_arm64_toolchain",
36+
"@bsd_tar_toolchains//:windows_amd64_toolchain",
37+
# host toolchain must be last, as it's only suitable as a fallback on macos
38+
"@bsd_tar_toolchains//:host_toolchain",
39+
)
40+
41+
# To allow /tools to be built from source
42+
# NOTE: when publishing to BCR, we patch this to be dev_dependency, as we publish pre-built binaries
43+
# along with our releases.
44+
45+
bazel_dep(
46+
name = "gazelle",
47+
version = "0.33.0",
48+
dev_dependency = True
49+
)
50+
bazel_dep(
51+
name = "rules_go",
52+
version = "0.41.0",
53+
repo_name = "io_bazel_rules_go",
54+
dev_dependency = True
55+
)
56+
57+
go_deps = use_extension(
58+
"@gazelle//:extensions.bzl",
59+
"go_deps",
60+
dev_dependency = True
61+
)
62+
go_deps.from_file(go_mod = "//:go.mod")
63+
use_repo(
64+
go_deps,
65+
"com_github_bmatcuk_doublestar_v4",
66+
"org_golang_x_exp",
67+
)
68+
69+
# Development-only dependencies
70+
71+
bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.4.1", dev_dependency = True)
72+
bazel_dep(name = "buildifier_prebuilt", version = "6.3.3", dev_dependency = True)
73+
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.42.1",
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-0CA7AyomCGcpreSMRrxhWftKqCXZpb3y2XJEm8vv6Wc=",
3+
"strip_prefix": "bazel-lib-1.42.1",
4+
"url": "https://github.com/aspect-build/bazel-lib/releases/download/v1.42.1/bazel-lib-v1.42.1.tar.gz",
5+
"patches": {
6+
"go_dev_dep.patch": "sha256-dEFxvx2hBB/tOWlknfRHRXNCdvYpvrxsYHWaMGF2QgA=",
7+
"module_dot_bazel_version.patch": "sha256-W29SKEA2wbqTNtqceS19h0oX2jWdAreBf87b5fD6gjM="
8+
},
9+
"patch_strip": 1
10+
}

modules/aspect_bazel_lib/metadata.json

+1
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
"1.40.3",
9696
"1.41.0",
9797
"1.42.0",
98+
"1.42.1",
9899
"2.0.0-beta0",
99100
"2.0.0-beta1",
100101
"2.0.0-rc0",

0 commit comments

Comments
 (0)