Indirect .files_to_run and .default_runfiles through DefaultInfo. (#848)

The old ways are going away.
This commit is contained in:
lberki 2024-04-10 15:35:02 +02:00 committed by GitHub
commit 59e682ddf1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -26,9 +26,9 @@ def _git_changelog_impl(ctx):
if toolchain.path:
args.add("--git_path", toolchain.path)
else:
executable = toolchain.label.files_to_run.executable
executable = toolchain.label[DefaultInfo].files_to_run.executable
tools.append(executable)
tools.append(toolchain.label.default_runfiles.files.to_list())
tools.append(toolchain.label[DefaultInfo].default_runfiles.files.to_list())
args.add("--git_path", executable.path)
args.add("--git_root", toolchain.client_top)
args.add("--from_ref", ctx.attr.from_ref)