Files
Etienne Perot 45d4f21950 Add license auditing tooling to the repository.
This adds a tool to pull in and analyze the licenses of all
dependencies in the project, and ensures they are in a set of allowed
licenses.

This ensures that if we add new deps down the line, they must be part
of the set of allowed licenses.
2026-09-04 16:14:52 -07:00

32 lines
774 B
Python

load("//tools:defs.bzl", "go_library", "go_test")
package(
default_applicable_licenses = ["//:license"],
licenses = ["notice"],
)
go_library(
name = "licensecheck",
srcs = ["licensecheck.go"],
marshal = False,
stateify = False,
visibility = ["//tools/licensecheck:__subpackages__"],
deps = [
"@in_gopkg_yaml_v3//:go_default_library",
"@org_golang_x_mod//modfile:go_default_library",
"@org_golang_x_mod//module:go_default_library",
"@org_golang_x_mod//semver:go_default_library",
],
)
go_test(
name = "licensecheck_test",
size = "small",
srcs = ["licensecheck_test.go"],
data = [
"dependencies.yaml",
"//governance:licensing.yaml",
],
library = ":licensecheck",
)