Benjamin Peterson
unread,Nov 28, 2017, 1:27:04 AM11/28/17Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Matthew Moore, Damien Martin-Guillerez, Alex Flint, bazel-discuss, Dan Lorenc
Yes, it's bit obscure. Bazel lets you create arbitrary aliases for
artifacts in the runfiles tree and these cannot be inspected through
skylark.
As an example, it's not possible to write Skylark that can correctly
package the runfiles tree this rule class:
def example_impl(ctx):
ctx.actions.file(output=ctx.outputs.executable, executable=True,
content='hello')
return struct(
ctx.runfiles(symlinks={'example-runfile' :
ctx.outputs.executable}),
)
example = rule(
implementation = example_impl,
executable = True,
)
The builtin Bazel rules don't use this symlinks feature except in arcane
situations, so you're probably mostly in the clear.
On Mon, Nov 27, 2017, at 07:20, Matthew Moore wrote:
> This is essentially the goal of the lang_image
> <
https://github.com/bazelbuild/rules_docker#language-rules> rules.
> > > > email to
bazel-discus...@googlegroups.com.