Skip to content

Change target to targets for license_policy_check#122

Merged
aiuto merged 1 commit intobazelbuild:mainfrom
aiuto:pcheck
Oct 28, 2023
Merged

Change target to targets for license_policy_check#122
aiuto merged 1 commit intobazelbuild:mainfrom
aiuto:pcheck

Conversation

@aiuto
Copy link
Copy Markdown
Collaborator

@aiuto aiuto commented Oct 27, 2023

When license_policy_check is applied to a target that generates multiple files, the policy check fails. See below for an example error message.

in target attribute of _license_policy_check rule <:label_for_target_policy_check_is_applied_to> must produce a single file.

This seems to be due to allow_single_file = True in the description of the rule's attr target. This change removes the line, allowing a policy check to be applied to targets producing multiple files or a single file.

This change was tested by applying license_policy_check to a java_binary target (producing 2 files) and a java_library target (producing 1 file). Both policy checks ran successfully.

Cloned from #71.
Fixes #71

Copy link
Copy Markdown
Collaborator

@mzeren-vmw mzeren-vmw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aiuto aiuto merged commit 8c36d70 into bazelbuild:main Oct 28, 2023
@aiuto aiuto deleted the pcheck branch October 28, 2023 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants