Skip to content

Commit

Permalink
Merge pull request #141 from mai93/patch-1
Browse files Browse the repository at this point in the history
Replace `ctx.build_file_path`
  • Loading branch information
aiuto authored Aug 1, 2024
2 parents efd82e3 + 5f755fd commit 3c94bd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/license_impl.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def license_rule_impl(ctx):
provider = LicenseInfo(
license_kinds = tuple([k[LicenseKindInfo] for k in ctx.attr.license_kinds]),
copyright_notice = ctx.attr.copyright_notice,
package_name = ctx.attr.package_name or ctx.build_file_path.rstrip("/BUILD"),
package_name = ctx.attr.package_name or ctx.label.package,
package_url = ctx.attr.package_url,
package_version = ctx.attr.package_version,
license_text = ctx.file.license_text,
Expand Down

0 comments on commit 3c94bd2

Please sign in to comment.