Skip to content

Instantly share code, notes, and snippets.

@kchodorow kchodorow/BUILD
Created Jun 17, 2016

What would you like to do?
load("//:tester.bzl", "greet")
name = "a-greeting",
my_name = "kristina",
$ bazel build :a-greeting
INFO: Found 1 target...
Target //:a-greeting up-to-date:
INFO: Elapsed time: 0.324s, Critical Path: 0.00s
def _impl(ctx):
output = ctx.outputs.greeting
output = output,
content = "")
greet = rule(
attrs = {"my_name": attr.string()},
outputs = {"greeting": "hi-there-%{my_name}"},
implementation = _impl,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.