Skip to content

Commit a104bea

Browse files
committed
chore: use bazel_lib instead of aspect_bazel_lib
1 parent 1db1f21 commit a104bea

File tree

14 files changed

+31
-127
lines changed

14 files changed

+31
-127
lines changed

.gitattributes

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# In code review, collapse generated files
2-
docs/*.md linguist-generated=true
3-
41
#################################
52
# Configuration for 'git archive'
63
# See https://git-scm.com/docs/git-archive#ATTRIBUTES

.pre-commit-config.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@ repos:
2323
- id: destroyed-symlinks
2424
- id: detect-private-key
2525
- id: end-of-file-fixer
26-
exclude: |
27-
(?x)^(
28-
docs/
29-
)
3026
- id: trailing-whitespace
3127
# Check formatting and lint for starlark code
3228
- repo: https://github.com/keith/pre-commit-buildifier

.prettierignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ module(
66
compatibility_level = 1,
77
)
88

9-
bazel_dep(name = "aspect_bazel_lib", version = "2.19.1")
9+
bazel_dep(name = "bazel_lib", version = "3.0.0")
1010
bazel_dep(name = "bazel_features", version = "1.32.0")
1111
bazel_dep(name = "bazel_skylib", version = "1.8.1")
1212
bazel_dep(name = "package_metadata", version = "0.0.5")

d/BUILD.bazel

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
1+
load("@bazel_lib//:bzl_library.bzl", "bzl_library")
22
load("//d/private:resolved_toolchain.bzl", "resolved_toolchain")
33

44
# For stardoc to reference the files
@@ -38,6 +38,7 @@ bzl_library(
3838
deps = [
3939
"//d/private:toolchains_repo",
4040
"//d/private/sdk:versions",
41+
"@bazel_tools//tools/build_defs/repo:cache.bzl",
4142
"@bazel_tools//tools/build_defs/repo:http.bzl",
4243
"@bazel_tools//tools/build_defs/repo:utils.bzl",
4344
],

d/private/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
1+
load("@bazel_lib//:bzl_library.bzl", "bzl_library")
22

33
bzl_library(
44
name = "toolchains_repo",

d/private/rules/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
1+
load("@bazel_lib//:bzl_library.bzl", "bzl_library")
22

33
exports_files(
44
glob(["*.bzl"]),
@@ -24,7 +24,7 @@ bzl_library(
2424
],
2525
deps = [
2626
"//d/private:providers",
27-
"@aspect_bazel_lib//lib:expand_make_vars",
27+
"@bazel_lib//lib:expand_make_vars",
2828
"@bazel_skylib//lib:dicts",
2929
"@bazel_skylib//lib:paths",
3030
"@rules_cc//cc/common",

d/private/rules/common.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""Common definitions for D rules."""
22

3-
load("@aspect_bazel_lib//lib:expand_make_vars.bzl", "expand_variables")
3+
load("@bazel_lib//lib:expand_make_vars.bzl", "expand_variables")
44
load("@bazel_skylib//lib:dicts.bzl", "dicts")
55
load("@bazel_skylib//lib:paths.bzl", "paths")
66
load("@rules_cc//cc/common:cc_info.bzl", "CcInfo")

d/private/sdk/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
1+
load("@bazel_lib//:bzl_library.bzl", "bzl_library")
22

33
bzl_library(
44
name = "versions",

d/repositories.bzl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ def d_register_toolchains(name, register = True, **kwargs):
105105
- create a repository exposing toolchains for each platform like "d_platforms"
106106
- register a toolchain pointing at each platform
107107
Users can avoid this macro and do these steps themselves, if they want more control.
108+
108109
Args:
109110
name: base name for all created repos, like "d1_14"
110111
register: whether to call through to native.register_toolchains.

0 commit comments

Comments
 (0)