Skip to content

Commit de2eedd

Browse files
committed
rpm: fix bug with generation and changelog
When passing changelog as an argument the OutputGroupInfo expects File and not Target, so it needs to be retrieved from the file member of the context
1 parent 994a1f5 commit de2eedd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/rpm_pfg.bzl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -684,8 +684,8 @@ def _pkg_rpm_impl(ctx):
684684
)
685685

686686
changes = []
687-
if ctx.attr.changelog:
688-
changes = [ctx.attr.changelog]
687+
if ctx.file.changelog:
688+
changes = [ctx.file.changelog]
689689

690690
output_groups = {
691691
"out": [default_file],

0 commit comments

Comments
 (0)