Skip to content

Commit 1424377

Browse files
authored
Fix positional argument (bazel-contrib#2651)
When I copy and paste this line, I get Error in label: label() got unexpected positional argument from bazel.
1 parent 35e8393 commit 1424377

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

go/toolchains.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,9 @@ dependencies.
201201
implementation = _my_rule_impl,
202202
attrs = {
203203
...
204-
"_go_context_data": attr.label("@io_bazel_rules_go//:go_context_data"),
204+
"_go_context_data": attr.label(
205+
default = "@io_bazel_rules_go//:go_context_data",
206+
),
205207
},
206208
toolchains = ["@io_bazel_rules_go//go:toolchain"],
207209
)

0 commit comments

Comments
 (0)