diff options
author | aiuto <aiuto@google.com> | 2021-06-08 16:55:51 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-08 16:55:51 -0400 |
commit | 8bc862e3ba66af3bf269bcdc9be7e83622929ecb (patch) | |
tree | 3d686d5e2bb8a4aa6edcf7a542ab5672e8950b58 /pkg/pkg.bzl | |
parent | 2773e96e3a42254bee57288800f08c7b6bfdeeec (diff) | |
download | rules_pkg-8bc862e3ba66af3bf269bcdc9be7e83622929ecb.tar.gz |
Remove the capability to have the Debian .changes file have a different (#342)
naming pattern than the .deb file
Closes #289
Diffstat (limited to 'pkg/pkg.bzl')
-rw-r--r-- | pkg/pkg.bzl | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/pkg/pkg.bzl b/pkg/pkg.bzl index 933e78b..a4412f1 100644 --- a/pkg/pkg.bzl +++ b/pkg/pkg.bzl @@ -205,17 +205,7 @@ def _pkg_deb_impl(ctx): package_file_name = package_file_name, ) - # If the user does not provide the changes file, compute it. - # TODO(https://github.com/bazelbuild/rules_pkg/issues/289): Should the - # user even be allowed to provide it? That is, is there any value in - # ability to have the basename of the .deb and the .changes file be - # different? - if ctx.outputs.changes: - changes_file = ctx.outputs.changes - else: - changes_file = ctx.actions.declare_file( - output_name.split(".")[0] + ".changes", - ) + changes_file = ctx.actions.declare_file(output_name.split(".")[0] + ".changes") outputs.append(changes_file) files = [ctx.file.data] @@ -487,9 +477,6 @@ pkg_deb_impl = rule( providers = [PackageVariablesInfo], ), - # Outputs. - "changes": attr.output(mandatory = False), - # Implicit dependencies. "make_deb": attr.label( default = Label("//:make_deb"), |