summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlberki <lberki@users.noreply.github.com>2024-04-10 15:35:02 +0200
committerGitHub <noreply@github.com>2024-04-10 15:35:02 +0200
commit59e682ddf1a47c8ab7c0fbffbe8485d7061048f3 (patch)
treeaae5ffbe0b886c59ae6d4980d92c605dd9e35e27
parenta56b1d9d339b70c01f92db74d62f4973a789f0fd (diff)
parent79d1f2cd61aa0ebc381ee50cb129fe02f609be4a (diff)
downloadbazelbuild-rules_pkg-59e682ddf1a47c8ab7c0fbffbe8485d7061048f3.tar.gz
Indirect .files_to_run and .default_runfiles through DefaultInfo. (#848)
The old ways are going away.
-rw-r--r--pkg/releasing/git.bzl4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/releasing/git.bzl b/pkg/releasing/git.bzl
index 787e75b..f37e6c6 100644
--- a/pkg/releasing/git.bzl
+++ b/pkg/releasing/git.bzl
@@ -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)