Skip to content

Commit e4f7c4b

Browse files
authored
Bump buildifier for bazelci to 5.1.0 (#276)
* Bump buildifier for bazelci * Use cfg='exec' * manually fix cfg=exec in vendored files I don't like doing this (manually editing vendored files) but don't know how to exclude these files from the buildifier bazelci task.
1 parent 41c6b82 commit e4f7c4b

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

.bazelci/presubmit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
buildifier:
3-
version: 4.2.3
3+
version: 5.1.0
44
warnings: "-function-docstring,-function-docstring-header,-module-docstring,-function-docstring-args,-list-append"
55
bazel: 5.1.1
66
tasks:

cmd/gencopy/gencopy.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ gencopy_attrs = {
2828
doc = "The gencopy binary",
2929
default = str(Label("//cmd/gencopy")),
3030
allow_single_file = True,
31-
cfg = "host",
31+
cfg = "exec",
3232
executable = True,
3333
),
3434
}

rules/example.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ _examplegen = rule(
5959
default = "//cmd/examplegen",
6060
allow_single_file = True,
6161
executable = True,
62-
cfg = "host",
62+
cfg = "exec",
6363
),
6464
},
6565
outputs = {

rules/proto_gazelle.bzl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ _gazelle_runner = rule(
7979
"gazelle": attr.label(
8080
default = "@bazel_gazelle//cmd/gazelle",
8181
executable = True,
82-
cfg = "host",
82+
cfg = "exec",
8383
),
8484
"command": attr.string(
8585
values = [

vendor/github.com/bazelbuild/bazel-gazelle/language/go/def.bzl

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/github.com/bazelbuild/buildtools/build/build_defs.bzl

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)