Skip to content

Commit

Permalink
Include DefaultInfo.files in the set of installed files (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
bttk authored Apr 28, 2020
1 parent 830e6cd commit 50ef3ba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion installer/def.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,10 @@ _TEMPLATE_TARGET = "@com_github_google_rules_install//installer:installer_templa
def _install_files_depset(default_info):
direct = []
transitive = []
if default_info.files:
transitive.append(default_info.files)
if default_info.default_runfiles:
transitive = [default_info.default_runfiles.files]
transitive.append(default_info.default_runfiles.files)
if default_info.files_to_run and default_info.files_to_run.executable:
direct = [default_info.files_to_run.executable]
if direct or transitive:
Expand Down

0 comments on commit 50ef3ba

Please sign in to comment.