Skip to content

Commit

Permalink
Switch library search path to a depset (#437)
Browse files Browse the repository at this point in the history
This removes duplicate entries from the list passed to the compile step
  • Loading branch information
ianthehat authored May 4, 2017
1 parent 6823aef commit 94fc0c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/def.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ def go_library_impl(ctx):
search_path = out_lib.path[:-len(lib_name)]
gc_goopts = _gc_goopts(ctx)
transitive_go_libraries = depset([out_lib])
transitive_go_library_paths = [search_path]
transitive_go_library_paths = depset([search_path])
for dep in deps:
transitive_go_libraries += dep.transitive_go_libraries
transitive_cgo_deps += dep.transitive_cgo_deps
Expand Down

0 comments on commit 94fc0c5

Please sign in to comment.