Link to License Allowlist

When a license validation warning is generated, link to the allowlist file for easy fixing.


Bug: 382745675
Change-Id: I4899401a687ce06e74cd18a95e1a28a2684a8027
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/6076211
Reviewed-by: Jordan Brown <rop@google.com>
Commit-Queue: Jordan Brown <rop@google.com>
Reviewed-by: Rachael Newitt <renewitt@google.com>
Auto-Submit: Jordan Brown <rop@google.com>
changes/11/6076211/2
Jordan Brown 11 months ago committed by LUCI CQ
parent ba733f35cd
commit 8d20c1e0b5

@ -98,7 +98,8 @@ class LicenseField(field_types.SingleLineTextField):
if not_allowlisted:
return vr.ValidationWarning(
reason=f"{self._name} has a license not in the allowlist.",
reason=f"{self._name} has a license not in the allowlist."
" (see https://source.chromium.org/chromium/chromium/tools/depot_tools/+/main:metadata/fields/custom/license_allowlist.py).",
additional=[
"Licenses not allowlisted: "
f"{util.quoted(not_allowlisted)}.",

Loading…
Cancel
Save