#!/bin/sh # The required check "Licenses" of docs/agentic-workflow.md: each dependency's license against tools/allowed-licenses.txt. # werkdock itself is ignored: the check is about what it depends on. set -eu cd "$(dirname "$0")/.." allowed=$(grep -v '^#' tools/allowed-licenses.txt | grep . | paste -sd, -) # go-licenses must run on the toolchain that builds the module, else it takes its standard library for unknown packages. GOTOOLCHAIN=$(go env GOVERSION) export GOTOOLCHAIN exec go run github.com/google/go-licenses/v2@v2.0.1 check ./... --ignore werkdock --allowed_licenses="$allowed"