File tree Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Expand file tree Collapse file tree 2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 39
39
- uses : actions/checkout@v4
40
40
- uses : dtolnay/install-buck2@latest
41
41
- run : git ls-files '*.bzl' '*.bxl' | xargs buck2 starlark lint
42
+
43
+ buildifier :
44
+ name : Buildifier
45
+ needs : pre_ci
46
+ if : needs.pre_ci.outputs.continue
47
+ runs-on : ubuntu-latest
48
+ timeout-minutes : 45
49
+ steps :
50
+ - uses : actions/checkout@v4
51
+ - run : go install github.com/bazelbuild/buildtools/buildifier@latest
52
+ - run : echo $(go env GOPATH)/bin >> $GITHUB_PATH
53
+ - run : git ls-files '*.bzl' | xargs buildifier
54
+ - run : git ls-files '*/BUCK' BUCK_TREE | xargs -n1 buildifier -path BUILD.bazel -lint fix
55
+ - run : git ls-files '*.bxl' | xargs -n1 buildifier -path script.bzl -lint fix
56
+ - name : Check that buildifier wanted no changes
57
+ run : git diff --exit-code
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ set_cfg_constructor(
22
22
linux = "prelude//os/constraints:linux",
23
23
macos = "prelude//os/constraints:macos",
24
24
windows = "prelude//os/constraints:windows",
25
- ),
25
+ ), # buildifier: leave-alone
26
26
extra_data = struct(),
27
27
key = MODIFIER_METADATA_KEY,
28
28
stage0 = cfg_constructor_pre_constraint_analysis,
You can’t perform that action at this time.
0 commit comments