Skip to content

Commit a668db1

Browse files
authored
Update rules_bzlformat to 0.2.1. (#38)
1 parent 8e24400 commit a668db1

File tree

3 files changed

+26
-12
lines changed

3 files changed

+26
-12
lines changed

.github/workflows/bazel.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@ jobs:
3434
run: |
3535
bazelisk build //...
3636
37+
- name: Ensure all packages have bzlformat checks
38+
shell: bash
39+
run: |
40+
bazelisk run //:bzlformat_missing_pkgs_test
41+
3742
- name: Execute Integration Tests
3843
shell: bash
3944
run: |

BUILD.bazel

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
load("@bazel_skylib//:bzl_library.bzl", "bzl_library")
2-
load("@cgrindel_rules_bzlformat//bzlformat:bzlformat.bzl", "bzlformat_pkg")
2+
load(
3+
"@cgrindel_rules_bzlformat//bzlformat:bzlformat.bzl",
4+
"bzlformat_missing_pkgs",
5+
"bzlformat_pkg",
6+
)
37
load(
48
"@cgrindel_rules_updatesrc//updatesrc:updatesrc.bzl",
59
"updatesrc_update_all",
@@ -11,10 +15,15 @@ load(
1115

1216
bzlformat_pkg(name = "bzlformat")
1317

18+
bzlformat_missing_pkgs(
19+
name = "bzlformat_missing_pkgs",
20+
)
21+
1422
updatesrc_update_all(
1523
name = "update_all",
1624
targets_to_run = [
1725
"//doc:update",
26+
":bzlformat_missing_pkgs_fix",
1827
],
1928
)
2029

swiftformat/deps.bzl

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,25 @@ def swiftformat_rules_dependencies():
2424
maybe(
2525
http_archive,
2626
name = "cgrindel_bazel_doc",
27-
sha256 = "bae4a0f41cc5cf89f26c779fc04379f09bb290b4910b2cf206c0372ad0c8aac7",
28-
strip_prefix = "bazel-doc-0.1.0",
29-
urls = ["https://github.com/cgrindel/bazel-doc/archive/v0.1.0.tar.gz"],
27+
sha256 = "3ccc6d205a7f834c5e89adcb4bc5091a9a07a69376107807eb9aea731ce92854",
28+
strip_prefix = "bazel-doc-0.1.2",
29+
urls = ["https://github.com/cgrindel/bazel-doc/archive/v0.1.2.tar.gz"],
3030
)
3131

3232
maybe(
3333
http_archive,
34-
name = "cgrindel_rules_spm",
35-
sha256 = "fab28a41793744f3944ad2606cdd9c0f8e2f4861dd29fb1d61aa4263c7a1400a",
36-
strip_prefix = "rules_spm-0.6.0",
37-
urls = ["https://github.com/cgrindel/rules_spm/archive/v0.6.0.tar.gz"],
34+
name = "cgrindel_rules_bzlformat",
35+
sha256 = "44b09ad9c5395760065820676ba6e65efec08ae02c1ce7e2d39d42c5b1e7aec8",
36+
strip_prefix = "rules_bzlformat-0.2.1",
37+
urls = ["https://github.com/cgrindel/rules_bzlformat/archive/v0.2.1.tar.gz"],
3838
)
3939

4040
maybe(
4141
http_archive,
42-
name = "cgrindel_rules_bzlformat",
43-
sha256 = "b45b392613092b42c4ee94051be104b990e3c8651dea17410dfd63b98957cd57",
44-
strip_prefix = "rules_bzlformat-0.1.0",
45-
urls = ["https://github.com/cgrindel/rules_bzlformat/archive/v0.1.0.tar.gz"],
42+
name = "cgrindel_rules_spm",
43+
sha256 = "fab28a41793744f3944ad2606cdd9c0f8e2f4861dd29fb1d61aa4263c7a1400a",
44+
strip_prefix = "rules_spm-0.6.0",
45+
urls = ["https://github.com/cgrindel/rules_spm/archive/v0.6.0.tar.gz"],
4646
)
4747

4848
maybe(

0 commit comments

Comments
 (0)