-
-
Notifications
You must be signed in to change notification settings - Fork 707
Closed
Description
What version of rules_go are you using?
0.20.1
What version of gazelle are you using?
0.17.0
What version of Bazel are you using?
1.1.0
Does this issue reproduce with the latest releases of all the above?
Yes
What operating system and processor architecture are you using?
Linux x86_64
Any other potentially useful information about your toolchain?
None
What did you do?
I have a genrule like:
genrule(
name = "foo",
srcs = [],
outs = ["foo.txt"],
cmd = "touch foo.txt > $@",
toolchains = [
"@io_bazel_rules_go//go:toolchain",
],
)
What did you expect to see?
That this toolchain is successfully provided to the execution of the genrule.
What did you see instead?
'@io_bazel_rules_go//go:toolchain' does not have mandatory providers: 'TemplateVariableInfo'
ERROR: Analysis of target '//foo:bar' failed; build aborted: Analysis of target '//foo:bar' failed; build aborted
INFO: Elapsed time: 0.662s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (6 packages loaded, 9 targets configured)
Metadata
Metadata
Assignees
Labels
No labels