Skip to content

Commit 5e8094a

Browse files
committed
Bazel updates
- Remove use of deprecated bazel attribute label single_file - Add bazel version checking - Include go_rules fix for cross-compiling darwin binaries
1 parent 0ebf076 commit 5e8094a

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

build/run_in_workspace_with_goroot.bzl

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,18 +51,15 @@ _workspace_binary_script = rule(
5151
attrs = {
5252
"cmd": attr.label(
5353
mandatory = True,
54-
allow_files = True,
55-
single_file = True,
54+
allow_single_file = True,
5655
),
5756
"root_file": attr.label(
5857
mandatory = True,
59-
allow_files = True,
60-
single_file = True,
58+
allow_single_file = True,
6159
),
6260
"go_bin": attr.label(
6361
mandatory = True,
64-
allow_files = True,
65-
single_file = True,
62+
allow_single_file = True,
6663
),
6764
},
6865
executable = True,

0 commit comments

Comments
 (0)