- Skylark rules: if you set "outputs" or an attribute to a
function, this function must now list its required attributes as
parameters (instead of an attribute map).
I don't quite understand its meaning. I have a custom rule which worked fine with 0.2.3 but now broken with 0.3.1:
gen_go_file = rule(
gen_go_file_impl,
attrs = {...},
output_to_genfiles = True,
outputs = {...},
)
It complains:
Attribute 'attrs' either doesn't exist or uses a select() (i.e. could have multiple values)
Available attributes: :action_listener, compatible_with, deprecation, expect_failure, features, generator_function, generator_location, generator_name, pkg_name, restricted_to, src, tags, testonly, visibility
Thanks for the help.
It means the following won't work:
def gen_go_outputs(attrs) {
return {}
}
gen_go_file = rule(
gen_go_file_impl,
attrs = {...},
output_to_genfiles = True,
outputs = gen_go_outputs,
)
but this one works:
gen_go_outputs = {
}
gen_go_file = rule(
gen_go_file_impl,
attrs = {...},
output_to_genfiles = True,
outputs = gen_go_outputs,
)
Although I still don't know for the 1st case what should I pass to function gen_go_outputs if "attrs" is not allowed.
Seems like the standard debian package got lost in the process.
There is no https://github.com/bazelbuild/bazel/releases/download/0.3.1/bazel_0.3.1-linux-x86_64.deb
--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discus...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/0dc2376f-adac-4845-8a20-8824b48beaea%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.