aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Jake Voytko <jake@reviewninja.com>2015-12-01 18:28:33 +0000
committerGravatar Kristina Chodorow <kchodorow@google.com>2015-12-01 20:43:22 +0000
commitb6cbba378832cafc6f523e32ccfcaeee7600e6e8 (patch)
tree43ee915544b606d879e15864e622aa155857079c /tools
parent4519400563b5496c174d8c3659ec93de26304ede (diff)
Processes runfiles for libraries in addition to binaries. The behavior
now matches the documented API. -- Change-Id: I05738cc7fc60164e19e4c13822b37d032155cb06 Reviewed-on: https://bazel-review.git.corp.google.com/#/c/2380 MOS_MIGRATED_REVID=109099720
Diffstat (limited to 'tools')
-rw-r--r--tools/build_rules/go/def.bzl2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/build_rules/go/def.bzl b/tools/build_rules/go/def.bzl
index f63da7b942..4c304f5b49 100644
--- a/tools/build_rules/go/def.bzl
+++ b/tools/build_rules/go/def.bzl
@@ -210,10 +210,12 @@ def go_library_impl(ctx):
for dep in ctx.attr.deps:
transitive_libs += dep.transitive_go_library_object
+ runfiles = ctx.runfiles(collect_data = True)
return struct(
label = ctx.label,
files = set([out_lib]),
direct_deps = deps,
+ runfiles = runfiles,
go_sources = sources,
go_library_object = out_lib,
transitive_go_library_object = transitive_libs)