Skip to content

Commit 10f49a1

Browse files
authored
chore: bump to buildifier 6.4.0 (#148)
1 parent 918e4eb commit 10f49a1

File tree

8 files changed

+24
-24
lines changed

8 files changed

+24
-24
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ default_stages: [commit]
99
repos:
1010
# Check formatting and lint for starlark code
1111
- repo: https://github.com/keith/pre-commit-buildifier
12-
rev: 4.0.1.1
12+
rev: 6.4.0
1313
hooks:
1414
- id: buildifier
1515
- id: buildifier-lint
1616
# Enforce that commit messages allow for later changelog generation
1717
- repo: https://github.com/commitizen-tools/commitizen
18-
rev: v2.18.0
18+
rev: v3.24.0
1919
hooks:
2020
# Requires that commitizen is already installed
2121
- id: commitizen
2222
stages: [commit-msg]
2323
- repo: https://github.com/pre-commit/mirrors-prettier
24-
rev: 'v2.4.0'
24+
rev: v3.1.0
2525
hooks:
2626
- id: prettier

BUILD.bazel

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
21
load("@bazel_gazelle//:def.bzl", "gazelle", "gazelle_binary")
2+
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
33
load("@buildifier_prebuilt//:rules.bzl", "buildifier")
44
load("@npm//:defs.bzl", "npm_link_all_packages")
55

@@ -11,16 +11,23 @@ gazelle_binary(
1111
)
1212

1313
# gazelle:exclude @bazel/*
14+
1415
gazelle(
1516
name = "gazelle",
1617
gazelle = "gazelle_bin",
1718
)
1819

20+
buildifier(
21+
name = "buildifier",
22+
exclude_patterns = ["./.git/*"],
23+
lint_mode = "fix",
24+
mode = "fix",
25+
tags = ["manual"], # tag as manual so windows ci does not build it by default
26+
)
27+
1928
buildifier(
2029
name = "buildifier.check",
21-
exclude_patterns = [
22-
"./.git/*",
23-
],
30+
exclude_patterns = ["./.git/*"],
2431
lint_mode = "warn",
2532
mode = "diff",
2633
tags = ["manual"], # tag as manual so windows ci does not build it by default

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ bazel_dep(name = "bazel_skylib", version = "1.4.1")
1313
####### Dev dependencies ########
1414

1515
bazel_dep(name = "bazel_skylib_gazelle_plugin", version = "1.5.0", dev_dependency = True)
16-
bazel_dep(name = "buildifier_prebuilt", version = "6.1.2.1", dev_dependency = True)
16+
bazel_dep(name = "buildifier_prebuilt", version = "6.4.0", dev_dependency = True)
1717
bazel_dep(name = "gazelle", version = "0.36.0", dev_dependency = True, repo_name = "bazel_gazelle")
1818
bazel_dep(name = "rules_go", version = "0.46.0", dev_dependency = True)

WORKSPACE

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,4 @@
1-
# Declare the local Bazel workspace.
2-
# This is *not* included in the published distribution.
3-
workspace(
4-
# see https://docs.bazel.build/versions/main/skylark/deploying.html#workspace
5-
name = "aspect_rules_webpack",
6-
)
1+
workspace(name = "aspect_rules_webpack")
72

83
load("//:internal_deps.bzl", "rules_webpack_internal_deps")
94

@@ -50,8 +45,8 @@ register_unittest_toolchains()
5045

5146
############################################
5247
# Gazelle, for generating bzl_library targets
53-
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
5448
load("@bazel_gazelle//:deps.bzl", "gazelle_dependencies")
49+
load("@io_bazel_rules_go//go:deps.bzl", "go_register_toolchains", "go_rules_dependencies")
5550

5651
go_rules_dependencies()
5752

e2e/loaders/BUILD.bazel

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
load("@npm//:defs.bzl", "npm_link_all_packages")
1+
load("@aspect_rules_js//js:defs.bzl", "js_run_devserver")
22
load("@aspect_rules_webpack//webpack:defs.bzl", "webpack_bundle")
33
load("@bazel_skylib//rules:build_test.bzl", "build_test")
4-
load("@aspect_rules_js//js:defs.bzl", "js_run_devserver")
4+
load("@npm//:defs.bzl", "npm_link_all_packages")
55
load("@npm//:http-server/package_json.bzl", http_server_bin = "bin")
66

77
http_server_bin.http_server_binary(

e2e/worker/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
load("@aspect_bazel_lib//lib:write_source_files.bzl", "write_source_files")
21
load("@aspect_bazel_lib//lib:diff_test.bzl", "diff_test")
2+
load("@aspect_bazel_lib//lib:write_source_files.bzl", "write_source_files")
33
load("@aspect_rules_webpack//webpack:defs.bzl", "webpack_bundle")
44
load("@npm//:defs.bzl", "npm_link_all_packages")
55

internal_deps.bzl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ def rules_webpack_internal_deps():
4444

4545
http_archive(
4646
name = "buildifier_prebuilt",
47-
sha256 = "e46c16180bc49487bfd0f1ffa7345364718c57334fa0b5b67cb5f27eba10f309",
48-
strip_prefix = "buildifier-prebuilt-6.1.0",
49-
urls = [
50-
"https://github.com/keith/buildifier-prebuilt/archive/6.1.0.tar.gz",
51-
],
47+
sha256 = "8ada9d88e51ebf5a1fdff37d75ed41d51f5e677cdbeafb0a22dda54747d6e07e",
48+
strip_prefix = "buildifier-prebuilt-6.4.0",
49+
urls = ["http://github.com/keith/buildifier-prebuilt/archive/6.4.0.tar.gz"],
5250
)

webpack/tests/simple/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
load("@aspect_bazel_lib//lib:write_source_files.bzl", "write_source_files")
21
load("@aspect_bazel_lib//lib:diff_test.bzl", "diff_test")
2+
load("@aspect_bazel_lib//lib:write_source_files.bzl", "write_source_files")
33
load("//webpack:defs.bzl", "webpack_bundle")
44

55
webpack_bundle(

0 commit comments

Comments
 (0)