bazelbuild / rules_license

Apache License 2.0
80 stars 28 forks source link

Missing license file should not be a failure #64

Closed mnil closed 1 year ago

mnil commented 1 year ago

Expected Behavior

Adding a license file should be optional.

Actual Behavior

When adding attributes for a package under the unlicense license it is missing in the package since it's not a condition of the license to keep the license file when distributing. We can not add just the license-file locally in our repo since glob cannot traverse different namespaces, from @package -> @our_repo//workspace/package:LICENSE.

aiuto commented 1 year ago

This would have to be based on a policy of the organization importing rules_license. The glob is now organization selectable, so the workaround is trivial.

aiuto commented 1 year ago

This was fixed in 903667be86beb87ac9792ef8d7d065cca03f00d6