Skip to content

Commit

Permalink
*: fix fileperm on bazel RBE (#44624)
Browse files Browse the repository at this point in the history
close #44626
  • Loading branch information
xhebox committed Jun 13, 2023
1 parent 282c753 commit 17ae6f6
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion build/BUILD.bazel
Expand Up @@ -18,6 +18,20 @@ config_setting(
visibility = ["//visibility:public"],
)

bool_flag(
name = "with_rbe_flag",
build_setting_default = False,
visibility = ["//visibility:public"],
)

config_setting(
name = "without_rbe",
flag_values = {
":with_rbe_flag": "false",
},
visibility = ["//visibility:public"],
)

STATICHECK_ANALYZERS = [
"S1000",
"S1001",
Expand Down Expand Up @@ -152,10 +166,15 @@ nogo(
"//build:with_nogo": [
"//build/linter/allrevive",
"//build/linter/errcheck",
"//build/linter/filepermission",
"//build/linter/lll",
"//build/linter/revive",
],
"//conditions:default": [],
}) +
select({
"//build:without_rbe": [
"//build/linter/filepermission",
],
"//conditions:default": [],
}),
)

0 comments on commit 17ae6f6

Please sign in to comment.