You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@iceberg.apache.org by ze...@apache.org on 2026/08/25 16:33:27 UTC
(terraform-provider-iceberg) 01/01: Add a script to regenerate the binary license inventory
This is an automated email from the ASF dual-hosted git repository.
zeroshade pushed a commit to branch update-binary-licenses
in repository https://gitbox.apache.org/repos/asf/terraform-provider-iceberg.git
commit 43d56562898e4a8d44237a3f5e0a5895b6d5e76b
Author: Matt Topol <zo...@gmail.com>
AuthorDate: Tue Aug 25 12:33:15 2026 -0400
Add a script to regenerate the binary license inventory
LICENSE-binary, NOTICE-binary and licenses-binary/ describe the third-party
code statically linked into the convenience binaries, and were maintained
entirely by hand. Nothing verified them against what actually ships, and they
had drifted: four linked non-Apache-2.0 modules were unlisted and six listed
modules were no longer linked.
dev/update_licenses.sh derives the inventory from the modules the binary
actually links -- go list -deps on the main package, unioned over the whole
.goreleaser.yml GOOS/GOARCH matrix -- rather than from go.mod, which also
covers test-only and tooling dependencies. It regenerates the marked section
of LICENSE-binary and the per-module texts under licenses-binary/, and
--check reports drift without writing.
The Apache text and the trailing section listing bundled code under a license
other than its own module's stay hand-written; the latter records file-level
provenance no tool can recover, so the script only insists that every nested
license file it finds is mentioned there. NOTICE files are reported as an
advisory for the same reason. Classifications the tooling gets wrong are
pinned in dev/licenses/overrides.tsv instead of being patched into the output.
Regenerating turned up, beyond the drift in the issue: license text that
changed in place when terraform-plugin-log and terraform-svchost reattributed
copyright to IBM, and four bundled sub-components under a different license
than their own module (flate in andybalholm/brotli, simplelru/list.go in
golang-lru, s2 and snappy in klauspost/compress). All are now recorded.
Closes #101
---
LICENSE-binary | 19 +-
dev/licenses/overrides.tsv | 32 ++
dev/update_licenses.sh | 461 +++++++++++++++++++++
docs/releasing.md | 16 +
...rator-go.txt => LICENSE-clipperhouse-uax29.txt} | 2 +-
licenses-binary/LICENSE-go-viper-mapstructure.txt | 21 -
...xerrors.txt => LICENSE-golang.org-x-oauth2.txt} | 2 +-
licenses-binary/LICENSE-hamba-avro.txt | 21 -
...in-log.txt => LICENSE-hashicorp-golang-lru.txt} | 304 +++++++-------
.../LICENSE-hashicorp-terraform-plugin-log.txt | 2 +-
.../LICENSE-hashicorp-terraform-svchost.txt | 2 +-
...nappy.txt => LICENSE-klauspost-compress-s2.txt} | 1 +
...CENSE-rivo-uniseg.txt => LICENSE-twmb-avro.txt} | 2 +-
13 files changed, 684 insertions(+), 201 deletions(-)
diff --git a/LICENSE-binary b/LICENSE-binary
index dcef736..e2ab0f1 100644
--- a/LICENSE-binary
+++ b/LICENSE-binary
@@ -219,6 +219,7 @@ This product bundles various third-party components under other open source
licenses. This section summarizes those components and their licenses. See
licenses-binary/ for text of these licenses.
+--- BEGIN GENERATED SECTION: dev/update_licenses.sh (do not edit by hand) ---
BSD 2-Clause
------------
@@ -230,7 +231,6 @@ BSD 3-Clause
------------
github.com/antlr4-go/antlr/v4
github.com/golang/protobuf
-github.com/golang/snappy
github.com/google/uuid
github.com/klauspost/compress
github.com/pierrec/lz4/v4
@@ -238,11 +238,11 @@ github.com/pmezard/go-difflib
github.com/twmb/murmur3
golang.org/x/exp
golang.org/x/net
+golang.org/x/oauth2
golang.org/x/sync
golang.org/x/sys
golang.org/x/term
golang.org/x/text
-golang.org/x/xerrors
google.golang.org/protobuf
ISC License
@@ -256,15 +256,13 @@ atomicgo.dev/keyboard
atomicgo.dev/schedule
github.com/andybalholm/brotli
github.com/cespare/xxhash/v2
+github.com/clipperhouse/uax29/v2
github.com/creasty/defaults
github.com/fatih/color
-github.com/go-viper/mapstructure/v2
github.com/goccy/go-json
github.com/goccy/go-yaml
github.com/gookit/color
-github.com/hamba/avro/v2
github.com/hashicorp/go-hclog
-github.com/json-iterator/go
github.com/klauspost/cpuid/v2
github.com/lithammer/fuzzysearch
github.com/mattn/go-colorable
@@ -272,9 +270,9 @@ github.com/mattn/go-isatty
github.com/mattn/go-runewidth
github.com/mitchellh/go-testing-interface
github.com/pterm/pterm
-github.com/rivo/uniseg
github.com/stretchr/objx
github.com/stretchr/testify
+github.com/twmb/avro
github.com/xo/terminfo
gopkg.in/yaml.v3
@@ -282,6 +280,7 @@ Mozilla Public License 2.0
--------------------------
github.com/hashicorp/go-plugin
github.com/hashicorp/go-uuid
+github.com/hashicorp/golang-lru/v2
github.com/hashicorp/terraform-plugin-framework
github.com/hashicorp/terraform-plugin-framework-validators
github.com/hashicorp/terraform-plugin-go
@@ -290,6 +289,8 @@ github.com/hashicorp/terraform-registry-address
github.com/hashicorp/terraform-svchost
github.com/hashicorp/yamux
+--- END GENERATED SECTION ---
+
------------------------------------------------------------------------------------
Some bundled components carry code under a license other than the one their own
@@ -298,6 +299,7 @@ texts are also in licenses-binary/.
BSD 3-Clause
------------
+flate, in github.com/andybalholm/brotli
arrow/flight/cookie_middleware.go, in github.com/apache/arrow-go/v18
internal/sync/singleflight, in github.com/aws/aws-sdk-go-v2
internal/sync/singleflight, in github.com/aws/smithy-go
@@ -306,11 +308,16 @@ encoding/xml/escape.go, in github.com/aws/smithy-go
encoding/json/escape.go, in github.com/aws/smithy-go
format.go, in github.com/cockroachdb/apd/v3
loop.go, in github.com/cockroachdb/apd/v3
+simplelru/list.go, in github.com/hashicorp/golang-lru/v2
(from the Go project)
internal/snapref, in github.com/klauspost/compress
+snappy, in github.com/klauspost/compress
(from the Snappy-Go project)
+s2, in github.com/klauspost/compress
+ (from the Snappy-Go project, with later changes by Klaus Post)
+
MIT License
-----------
parquet/compress/brotli.go, in github.com/apache/arrow-go/v18
diff --git a/dev/licenses/overrides.tsv b/dev/licenses/overrides.tsv
new file mode 100644
index 0000000..13ea920
--- /dev/null
+++ b/dev/licenses/overrides.tsv
@@ -0,0 +1,32 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+# Corrections applied by dev/update_licenses.sh to what go-licenses reports.
+# Automatic classification reads one license file and returns one SPDX id, which
+# is wrong for the handful of modules that ship a compound license file or park
+# a license somewhere unexpected. Fix those here rather than by editing the
+# generated section of LICENSE-binary, which is overwritten on every run.
+#
+# Tab-separated:
+#
+# <key> <SPDX id | SKIP> <reason>
+#
+# <key> is the module path for a module's own license file, or the module path
+# joined with the directory the license governs for a nested one -- either way
+# it reads like an import path. SKIP drops the entry from the inventory.
+
+github.com/klauspost/compress BSD-3-Clause LICENSE is BSD-3-Clause (for the Go-derived code) with the Apache-2.0 text appended; go-licenses only sees the Apache-2.0 half. The BSD-3-Clause grant is the one that has to be reproduced.
diff --git a/dev/update_licenses.sh b/dev/update_licenses.sh
new file mode 100755
index 0000000..cfe04d0
--- /dev/null
+++ b/dev/update_licenses.sh
@@ -0,0 +1,461 @@
+#!/usr/bin/env bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+# Regenerate -- or verify -- the third-party license inventory that ships with
+# the convenience binaries: the generated section of LICENSE-binary and the
+# per-module license texts in licenses-binary/.
+#
+# The inventory is derived from the modules the provider binary actually links,
+# not from go.mod, which also covers test-only and tooling dependencies that are
+# never distributed. The linked set is computed for every GOOS/GOARCH pair that
+# .goreleaser.yml builds and then unioned, so a dependency that only appears on,
+# say, Windows is still accounted for.
+#
+# ASF policy is that "LICENSE and NOTICE must exactly represent the contents of
+# the distribution they reside in" (https://infra.apache.org/licensing-howto.html),
+# so this needs re-running whenever the dependency tree moves -- including when
+# an `// indirect` dependency changes, which is where the drift usually hides.
+#
+# dev/update_licenses.sh rewrite LICENSE-binary and licenses-binary/
+# dev/update_licenses.sh --check report drift, write nothing, exit non-zero
+#
+# Classifications that the tooling gets wrong are pinned in
+# dev/licenses/overrides.tsv rather than patched into the output by hand.
+
+set -euo pipefail
+
+SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
+REPO_ROOT="$(cd "${SCRIPT_DIR}/.." && pwd)"
+
+LICENSE_BINARY="${REPO_ROOT}/LICENSE-binary"
+LICENSES_DIR="${REPO_ROOT}/licenses-binary"
+OVERRIDES_FILE="${REPO_ROOT}/dev/licenses/overrides.tsv"
+
+BEGIN_MARK='--- BEGIN GENERATED SECTION: dev/update_licenses.sh (do not edit by hand) ---'
+END_MARK='--- END GENERATED SECTION ---'
+
+GO_LICENSES_VERSION="${GO_LICENSES_VERSION:-v1.6.0}"
+
+# Keep in sync with builds.goos / builds.goarch in .goreleaser.yml.
+DEFAULT_PLATFORMS="linux/amd64 linux/arm64 darwin/amd64 darwin/arm64 windows/amd64 windows/arm64 freebsd/amd64 freebsd/arm64"
+PLATFORMS="${LICENSE_PLATFORMS:-${DEFAULT_PLATFORMS}}"
+
+CHECK_ONLY=0
+DRIFT=0
+
+usage() {
+ cat <<'EOF'
+Usage: dev/update_licenses.sh [--check]
+
+ (no flag) Rewrite the generated section of LICENSE-binary and the license
+ texts in licenses-binary/ to match the linked dependencies.
+ --check Report drift and exit 1 without modifying anything.
+
+Environment:
+ LICENSE_PLATFORMS Space-separated GOOS/GOARCH list to analyze. Defaults to
+ the full .goreleaser.yml matrix.
+ GO_LICENSES Path to an existing go-licenses binary.
+ GO_LICENSES_VERSION Version to install if one is not already on PATH.
+EOF
+}
+
+log() { printf '%s\n' "$*" >&2; }
+
+fail() {
+ printf 'error: %s\n' "$*" >&2
+ exit 1
+}
+
+drift() {
+ printf '%s\n' "$*" >&2
+ DRIFT=1
+}
+
+# Filename stem used under licenses-binary/, e.g. github.com/hashicorp/yamux ->
+# LICENSE-hashicorp-yamux.txt. Drops the github.com host and the /vN major
+# version suffix, both of which are noise, and keeps every other host.
+slug_for() {
+ local mod="${1#github.com/}"
+ mod="$(printf '%s' "${mod}" | sed -E 's|/v[0-9]+$||')"
+ printf '%s' "${mod//\//-}"
+}
+
+# Section heading used in LICENSE-binary for an SPDX identifier. An unmapped
+# identifier is fatal on purpose: a license we have not seen before is a
+# decision for a human, not something to guess at.
+heading_for() {
+ case "$1" in
+ BSD-2-Clause) printf 'BSD 2-Clause' ;;
+ BSD-3-Clause) printf 'BSD 3-Clause' ;;
+ ISC) printf 'ISC License' ;;
+ MIT) printf 'MIT License' ;;
+ MPL-2.0) printf 'Mozilla Public License 2.0' ;;
+ *) return 1 ;;
+ esac
+}
+
+ensure_go_licenses() {
+ if [[ -n "${GO_LICENSES:-}" ]]; then
+ [[ -x "${GO_LICENSES}" ]] || fail "GO_LICENSES=${GO_LICENSES} is not executable"
+ return
+ fi
+ if command -v go-licenses >/dev/null 2>&1; then
+ GO_LICENSES="$(command -v go-licenses)"
+ return
+ fi
+ local gobin="${REPO_ROOT}/build/tools"
+ if [[ ! -x "${gobin}/go-licenses" ]]; then
+ log "installing go-licenses ${GO_LICENSES_VERSION} into build/tools"
+ # GOFLAGS is cleared so a caller's -mod=vendor/-mod=readonly does not leak
+ # into the install of an unrelated module.
+ GOFLAGS='' GOBIN="${gobin}" go install "github.com/google/go-licenses@${GO_LICENSES_VERSION}"
+ fi
+ GO_LICENSES="${gobin}/go-licenses"
+}
+
+# Populates ${WORK}/attributed.tsv with one row per (module, license file):
+# module-path <TAB> version <TAB> license-path-within-module <TAB> spdx-id
+collect() {
+ local template="${WORK}/report.tpl"
+ printf '{{range .}}{{.LicenseName}}\t{{.LicensePath}}\n{{end}}' >"${template}"
+
+ local main_module
+ main_module="$(cd "${REPO_ROOT}" && go list -m)"
+
+ : >"${WORK}/modules.raw"
+ : >"${WORK}/licenses.raw"
+
+ local platform goos goarch
+ for platform in ${PLATFORMS}; do
+ goos="${platform%/*}"
+ goarch="${platform#*/}"
+ [[ "${goos}" != "${platform}" && -n "${goarch}" ]] || fail "bad platform '${platform}', want GOOS/GOARCH"
+ log " analyzing ${platform}"
+
+ # Module directories, for attributing each license file to its module.
+ # `go list -deps .` walks the import graph of the provider's main package,
+ # so test-only and tool dependencies are excluded by construction.
+ (cd "${REPO_ROOT}" && GOOS="${goos}" GOARCH="${goarch}" \
+ go list -deps -f '{{with .Module}}{{.Dir}}{{"\t"}}{{.Path}}{{"\t"}}{{.Version}}{{end}}' .) \
+ >>"${WORK}/modules.raw"
+
+ (cd "${REPO_ROOT}" && GOOS="${goos}" GOARCH="${goarch}" \
+ "${GO_LICENSES}" report . --template "${template}") \
+ >>"${WORK}/licenses.raw" 2>>"${WORK}/go-licenses.log"
+ done
+
+ # Drop stdlib, which has no module and so yields a blank line.
+ grep -v '^$' "${WORK}/modules.raw" | sort -u >"${WORK}/modules.all.tsv"
+ grep -v '^$' "${WORK}/licenses.raw" | sort -u >"${WORK}/licenses.tsv"
+
+ # The provider's own module has to stay in the attribution table -- its LICENSE
+ # is one of the files go-licenses reports -- but it is not a bundled component.
+ grep -v -F " ${main_module} " "${WORK}/modules.all.tsv" >"${WORK}/modules.tsv"
+
+ [[ -s "${WORK}/modules.tsv" ]] || fail "no dependency modules found; is the module cache populated?"
+
+ # go-licenses reports a license file per package; attribute each one to the
+ # module that owns it by longest matching directory prefix.
+ awk -F'\t' -v OFS='\t' '
+ NR == FNR { dir[FNR] = $1; mod[FNR] = $2; ver[FNR] = $3; n = FNR; next }
+ {
+ best = 0; bestlen = 0
+ for (i = 1; i <= n; i++) {
+ l = length(dir[i])
+ if (l > bestlen && substr($2, 1, l) == dir[i] && substr($2, l + 1, 1) == "/") {
+ best = i; bestlen = l
+ }
+ }
+ if (best == 0) {
+ print "error: cannot attribute license file to a module: " $2 > "/dev/stderr"
+ bad = 1
+ next
+ }
+ print mod[best], ver[best], substr($2, bestlen + 2), $1
+ }
+ END { if (bad) exit 1 }
+ ' "${WORK}/modules.all.tsv" "${WORK}/licenses.tsv" \
+ | awk -F'\t' -v main="${main_module}" '$1 != main' \
+ | sort -u >"${WORK}/attributed.tsv"
+}
+
+# Rewrites attributed.tsv in place, applying dev/licenses/overrides.tsv.
+apply_overrides() {
+ [[ -f "${OVERRIDES_FILE}" ]] || return 0
+ awk -F'\t' -v OFS='\t' '
+ NR == FNR {
+ if ($0 ~ /^[[:space:]]*(#|$)/) next
+ override[$1] = $2
+ next
+ }
+ {
+ # Key a root license file by its module and a nested one by the directory
+ # it governs, so both read like an import path.
+ key = $1
+ if (index($3, "/") > 0) {
+ sub_dir = $3
+ sub(/\/[^\/]+$/, "", sub_dir)
+ key = key "/" sub_dir
+ }
+ if (key in override) {
+ if (override[key] == "SKIP") next
+ $4 = override[key]
+ }
+ print
+ }
+ ' "${OVERRIDES_FILE}" "${WORK}/attributed.tsv" >"${WORK}/attributed.override"
+ mv "${WORK}/attributed.override" "${WORK}/attributed.tsv"
+}
+
+# Splits attributed.tsv into the module-level inventory that gets generated and
+# the nested license files that stay hand-curated.
+partition() {
+ # Module-level, non-Apache: heading <TAB> module <TAB> version <TAB> license path
+ : >"${WORK}/modlevel.tsv"
+ local mod ver sub spdx heading
+ while IFS=$'\t' read -r mod ver sub spdx; do
+ [[ "${sub}" == */* ]] && continue
+ [[ "${spdx}" == "Apache-2.0" ]] && continue
+ if ! heading="$(heading_for "${spdx}")"; then
+ fail "unmapped license '${spdx}' for ${mod}.
+Add a heading for it in heading_for() (and confirm it is even acceptable for an
+ASF distribution: https://www.apache.org/legal/resolved.html), or pin a correct
+classification in dev/licenses/overrides.tsv."
+ fi
+ printf '%s\t%s\t%s\t%s\n' "${heading}" "${mod}" "${ver}" "${sub}" >>"${WORK}/modlevel.tsv"
+ done <"${WORK}/attributed.tsv"
+ sort -u -o "${WORK}/modlevel.tsv" "${WORK}/modlevel.tsv"
+
+ # A module must not end up in two license groups; that means an override is
+ # missing or wrong rather than that both are true. modlevel.tsv is sorted by
+ # heading, so duplicate modules are not adjacent until sorted again.
+ local dupes
+ dupes="$(cut -f2 "${WORK}/modlevel.tsv" | sort | uniq -d)"
+ [[ -z "${dupes}" ]] || fail "modules classified under more than one license: ${dupes}"
+
+ # Nested, non-Apache license files: module <TAB> governed dir <TAB> spdx <TAB> path
+ : >"${WORK}/nested.tsv"
+ while IFS=$'\t' read -r mod ver sub spdx; do
+ [[ "${sub}" == */* ]] || continue
+ [[ "${spdx}" == "Apache-2.0" ]] && continue
+ printf '%s\t%s\t%s\t%s\n' "${mod}" "${sub%/*}" "${spdx}" "${sub}" >>"${WORK}/nested.tsv"
+ done <"${WORK}/attributed.tsv"
+ sort -u -o "${WORK}/nested.tsv" "${WORK}/nested.tsv"
+}
+
+# Renders the grouped module list that goes between the markers.
+render_section() {
+ local heading mod prev="" first=1
+ while IFS=$'\t' read -r heading mod _ _; do
+ if [[ "${heading}" != "${prev}" ]]; then
+ [[ ${first} -eq 1 ]] || echo
+ first=0
+ echo "${heading}"
+ printf '%*s\n' "${#heading}" '' | tr ' ' '-'
+ prev="${heading}"
+ fi
+ echo "${mod}"
+ done <"${WORK}/modlevel.tsv"
+}
+
+# Module paths listed in the current generated section, i.e. the licenses-binary/
+# files this script owns today. Anything else in that directory is hand-curated
+# and never touched.
+previous_modules() {
+ awk -v b="${BEGIN_MARK}" -v e="${END_MARK}" '$0 == b { inside = 1; next } $0 == e { inside = 0 } inside' \
+ "${LICENSE_BINARY}" | grep -E '^[a-z0-9.-]+\.[a-z]+/' || true
+}
+
+# Renders the updated LICENSE-binary into the work directory, and snapshots the
+# module list the current one advertises -- the set of licenses-binary/ files
+# this script owns -- before that list is overwritten.
+build_license_binary() {
+ local begins ends
+ begins="$(grep -c -F -x -- "${BEGIN_MARK}" "${LICENSE_BINARY}" || true)"
+ ends="$(grep -c -F -x -- "${END_MARK}" "${LICENSE_BINARY}" || true)"
+ [[ "${begins}" == "1" && "${ends}" == "1" ]] || fail \
+ "LICENSE-binary must contain exactly one generated-section marker pair (found ${begins} begin, ${ends} end)"
+
+ render_section >"${WORK}/section.txt"
+ awk -v b="${BEGIN_MARK}" -v e="${END_MARK}" -v section="${WORK}/section.txt" '
+ $0 == b {
+ print; print ""
+ while ((getline line < section) > 0) print line
+ print ""
+ inside = 1
+ next
+ }
+ $0 == e { inside = 0 }
+ !inside { print }
+ ' "${LICENSE_BINARY}" >"${WORK}/LICENSE-binary.new"
+ previous_modules >"${WORK}/previous.txt"
+}
+
+report_notices() {
+ local mod dir notices=()
+ while IFS=$'\t' read -r dir mod _; do
+ local found
+ found="$(find "${dir}" -maxdepth 1 -type f \( -name 'NOTICE' -o -name 'NOTICE.txt' -o -name 'NOTICE.md' \) 2>/dev/null | head -n 1)"
+ [[ -n "${found}" ]] && notices+=("${mod}")
+ done <"${WORK}/modules.tsv"
+
+ [[ ${#notices[@]} -gt 0 ]] || return 0
+ log ""
+ log "Linked modules that ship a NOTICE file -- confirm NOTICE-binary still"
+ log "reproduces each of them (this is advisory; it is not checked):"
+ local m
+ for m in "${notices[@]}"; do
+ log " ${m}"
+ done
+}
+
+# Escapes a string so it can be dropped into an ERE as a literal.
+escape_re() {
+ printf '%s' "$1" | sed -E 's/[^a-zA-Z0-9_-]/\\&/g'
+}
+
+# Nested license files are listed by hand in the trailing section of
+# LICENSE-binary, because that section records file-level provenance that no
+# tool can recover. All this can do is insist that each one is mentioned.
+#
+# The entry may narrow the directory the license file governs to the specific
+# files it actually covers -- "simplelru/list.go, in <module>" satisfies a
+# license file governing "simplelru" -- since that is strictly more accurate.
+check_nested() {
+ local mod dir spdx path pattern missing=()
+ while IFS=$'\t' read -r mod dir spdx path; do
+ pattern="^$(escape_re "${dir}")[^,]*, in $(escape_re "${mod}")\$"
+ if ! grep -qE -- "${pattern}" "${LICENSE_BINARY}"; then
+ missing+=("${dir}, in ${mod} ${spdx} ${path}")
+ fi
+ done <"${WORK}/nested.tsv"
+
+ [[ ${#missing[@]} -gt 0 ]] || return 0
+ drift ""
+ drift "Bundled code under a license other than its own module's, not mentioned"
+ drift "in LICENSE-binary. Add each to the trailing section and put its text in"
+ drift "licenses-binary/, or record it as SKIP in dev/licenses/overrides.tsv:"
+ local entry
+ for entry in "${missing[@]}"; do
+ IFS=$'\t' read -r line spdx path <<<"${entry}"
+ drift " ${line}"
+ drift " ${spdx}, text at <module>/${path}"
+ done
+}
+
+sync_texts() {
+ local heading mod ver sub dir target
+ local -A wanted=()
+
+ while IFS=$'\t' read -r heading mod ver sub; do
+ dir="$(cd "${REPO_ROOT}" && go list -m -f '{{.Dir}}' "${mod}")"
+ [[ -n "${dir}" && -f "${dir}/${sub}" ]] || fail "license file missing for ${mod}: ${dir}/${sub}"
+ target="LICENSE-$(slug_for "${mod}").txt"
+ wanted["${target}"]="${dir}/${sub}"
+ done <"${WORK}/modlevel.tsv"
+
+ # The module cache is read-only, so copy with an explicit mode rather than
+ # preserving 0444 and making the next run unable to overwrite its own output.
+ local name src
+ for name in "${!wanted[@]}"; do
+ src="${wanted[${name}]}"
+ if [[ ! -f "${LICENSES_DIR}/${name}" ]]; then
+ if [[ ${CHECK_ONLY} -eq 1 ]]; then
+ drift "missing licenses-binary/${name} (copy of ${src})"
+ else
+ log " + licenses-binary/${name}"
+ install -m 644 "${src}" "${LICENSES_DIR}/${name}"
+ fi
+ elif ! cmp -s "${src}" "${LICENSES_DIR}/${name}"; then
+ if [[ ${CHECK_ONLY} -eq 1 ]]; then
+ drift "licenses-binary/${name} differs from ${src}"
+ else
+ log " ~ licenses-binary/${name}"
+ install -m 644 "${src}" "${LICENSES_DIR}/${name}"
+ fi
+ fi
+ done
+
+ # Prune texts for modules that were in the generated section but are no longer
+ # linked. Files this script never generated are left alone.
+ local prev
+ while read -r prev; do
+ [[ -n "${prev}" ]] || continue
+ name="LICENSE-$(slug_for "${prev}").txt"
+ [[ -n "${wanted[${name}]:-}" ]] && continue
+ [[ -f "${LICENSES_DIR}/${name}" ]] || continue
+ if [[ ${CHECK_ONLY} -eq 1 ]]; then
+ drift "licenses-binary/${name} is stale: ${prev} is no longer linked"
+ else
+ log " - licenses-binary/${name} (${prev} no longer linked)"
+ rm "${LICENSES_DIR}/${name}"
+ fi
+ done <"${WORK}/previous.txt"
+}
+
+main() {
+ while [[ $# -gt 0 ]]; do
+ case "$1" in
+ --check) CHECK_ONLY=1 ;;
+ -h|--help) usage; exit 0 ;;
+ *) usage >&2; fail "unknown argument '$1'" ;;
+ esac
+ shift
+ done
+
+ command -v go >/dev/null 2>&1 || fail "go is required"
+ ensure_go_licenses
+
+ WORK="$(mktemp -d)"
+ trap 'rm -rf "${WORK}"' EXIT
+
+ log "Resolving the dependency tree of the convenience binaries..."
+ (cd "${REPO_ROOT}" && go mod download)
+ collect
+ apply_overrides
+ partition
+ build_license_binary
+
+ if [[ ${CHECK_ONLY} -eq 1 ]]; then
+ if ! diff -u "${LICENSE_BINARY}" "${WORK}/LICENSE-binary.new" >"${WORK}/diff"; then
+ drift "LICENSE-binary is out of date:"
+ sed 's/^/ /' "${WORK}/diff" >&2
+ fi
+ elif ! cmp -s "${LICENSE_BINARY}" "${WORK}/LICENSE-binary.new"; then
+ log " ~ LICENSE-binary"
+ cp "${WORK}/LICENSE-binary.new" "${LICENSE_BINARY}"
+ fi
+
+ sync_texts
+ check_nested
+ report_notices
+
+ if [[ ${DRIFT} -eq 1 ]]; then
+ log ""
+ log "Run dev/update_licenses.sh to regenerate what can be regenerated."
+ exit 1
+ fi
+
+ if [[ ${CHECK_ONLY} -eq 1 ]]; then
+ log ""
+ log "LICENSE-binary and licenses-binary/ match the linked dependencies."
+ fi
+}
+
+main "$@"
diff --git a/docs/releasing.md b/docs/releasing.md
index 631b574..94652e3 100644
--- a/docs/releasing.md
+++ b/docs/releasing.md
@@ -68,6 +68,22 @@ Before cutting a release candidate:
`docs/` and `examples/` that reference them.
* **Confirm the provider address** in [`main.go`](../main.go) is
`registry.terraform.io/apache/iceberg`.
+* **Refresh the binary license inventory** by running
+ [`./dev/update_licenses.sh`](../dev/update_licenses.sh) and committing any
+ result. `LICENSE-binary`, `NOTICE-binary`, and `licenses-binary/` describe the
+ third-party code statically linked into the convenience binaries, and
+ [ASF policy](https://infra.apache.org/licensing-howto.html) is that they must
+ exactly represent what ships. They go stale whenever the dependency tree moves
+ — most often through an `// indirect` dependency that no review of `go.mod`
+ would flag. `./dev/update_licenses.sh --check` reports drift without writing.
+
+ The script regenerates the marked section of `LICENSE-binary` and the
+ per-module texts under `licenses-binary/`. Two things it can only report,
+ because they need a human: bundled code carrying a license other than its
+ own module's (listed by hand in the trailing section of `LICENSE-binary`),
+ and `NOTICE` files that `NOTICE-binary` has to reproduce. Misclassifications
+ belong in [`dev/licenses/overrides.tsv`](../dev/licenses/overrides.tsv), not
+ in the generated output.
## Publishing a Release Candidate (RC)
diff --git a/licenses-binary/LICENSE-json-iterator-go.txt b/licenses-binary/LICENSE-clipperhouse-uax29.txt
similarity index 96%
rename from licenses-binary/LICENSE-json-iterator-go.txt
rename to licenses-binary/LICENSE-clipperhouse-uax29.txt
index 2cf4f5a..6ae86a9 100644
--- a/licenses-binary/LICENSE-json-iterator-go.txt
+++ b/licenses-binary/LICENSE-clipperhouse-uax29.txt
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) 2016 json-iterator
+Copyright (c) 2020 Matt Sherman
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
diff --git a/licenses-binary/LICENSE-go-viper-mapstructure.txt b/licenses-binary/LICENSE-go-viper-mapstructure.txt
deleted file mode 100644
index f9c841a..0000000
--- a/licenses-binary/LICENSE-go-viper-mapstructure.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2013 Mitchell Hashimoto
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/licenses-binary/LICENSE-golang.org-x-xerrors.txt b/licenses-binary/LICENSE-golang.org-x-oauth2.txt
similarity index 97%
rename from licenses-binary/LICENSE-golang.org-x-xerrors.txt
rename to licenses-binary/LICENSE-golang.org-x-oauth2.txt
index c3c8b7d..2a7cf70 100644
--- a/licenses-binary/LICENSE-golang.org-x-xerrors.txt
+++ b/licenses-binary/LICENSE-golang.org-x-oauth2.txt
@@ -1,4 +1,4 @@
-Copyright 2019 The Go Authors.
+Copyright 2009 The Go Authors.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
diff --git a/licenses-binary/LICENSE-hamba-avro.txt b/licenses-binary/LICENSE-hamba-avro.txt
deleted file mode 100644
index fac73a4..0000000
--- a/licenses-binary/LICENSE-hamba-avro.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-MIT License
-
-Copyright (c) 2025 Nicholas Wiersma
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
\ No newline at end of file
diff --git a/licenses-binary/LICENSE-hashicorp-terraform-plugin-log.txt b/licenses-binary/LICENSE-hashicorp-golang-lru.txt
similarity index 50%
copy from licenses-binary/LICENSE-hashicorp-terraform-plugin-log.txt
copy to licenses-binary/LICENSE-hashicorp-golang-lru.txt
index 84cd064..0e5d580 100644
--- a/licenses-binary/LICENSE-hashicorp-terraform-plugin-log.txt
+++ b/licenses-binary/LICENSE-hashicorp-golang-lru.txt
@@ -1,92 +1,92 @@
-Copyright (c) 2021 HashiCorp, Inc.
+Copyright (c) 2014 HashiCorp, Inc.
Mozilla Public License, version 2.0
1. Definitions
-1.1. “Contributor”
+1.1. "Contributor"
means each individual or legal entity that creates, contributes to the
creation of, or owns Covered Software.
-1.2. “Contributor Version”
+1.2. "Contributor Version"
means the combination of the Contributions of others (if any) used by a
- Contributor and that particular Contributor’s Contribution.
+ Contributor and that particular Contributor's Contribution.
-1.3. “Contribution”
+1.3. "Contribution"
means Covered Software of a particular Contributor.
-1.4. “Covered Software”
+1.4. "Covered Software"
means Source Code Form to which the initial Contributor has attached the
notice in Exhibit A, the Executable Form of such Source Code Form, and
Modifications of such Source Code Form, in each case including portions
thereof.
-1.5. “Incompatible With Secondary Licenses”
+1.5. "Incompatible With Secondary Licenses"
means
a. that the initial Contributor has attached the notice described in
Exhibit B to the Covered Software; or
- b. that the Covered Software was made available under the terms of version
- 1.1 or earlier of the License, but not also under the terms of a
- Secondary License.
+ b. that the Covered Software was made available under the terms of
+ version 1.1 or earlier of the License, but not also under the terms of
+ a Secondary License.
-1.6. “Executable Form”
+1.6. "Executable Form"
means any form of the work other than Source Code Form.
-1.7. “Larger Work”
+1.7. "Larger Work"
- means a work that combines Covered Software with other material, in a separate
- file or files, that is not Covered Software.
+ means a work that combines Covered Software with other material, in a
+ separate file or files, that is not Covered Software.
-1.8. “License”
+1.8. "License"
means this document.
-1.9. “Licensable”
+1.9. "Licensable"
- means having the right to grant, to the maximum extent possible, whether at the
- time of the initial grant or subsequently, any and all of the rights conveyed by
- this License.
+ means having the right to grant, to the maximum extent possible, whether
+ at the time of the initial grant or subsequently, any and all of the
+ rights conveyed by this License.
-1.10. “Modifications”
+1.10. "Modifications"
means any of the following:
- a. any file in Source Code Form that results from an addition to, deletion
- from, or modification of the contents of Covered Software; or
+ a. any file in Source Code Form that results from an addition to,
+ deletion from, or modification of the contents of Covered Software; or
b. any new file in Source Code Form that contains any Covered Software.
-1.11. “Patent Claims” of a Contributor
+1.11. "Patent Claims" of a Contributor
- means any patent claim(s), including without limitation, method, process,
- and apparatus claims, in any patent Licensable by such Contributor that
- would be infringed, but for the grant of the License, by the making,
- using, selling, offering for sale, having made, import, or transfer of
- either its Contributions or its Contributor Version.
+ means any patent claim(s), including without limitation, method,
+ process, and apparatus claims, in any patent Licensable by such
+ Contributor that would be infringed, but for the grant of the License,
+ by the making, using, selling, offering for sale, having made, import,
+ or transfer of either its Contributions or its Contributor Version.
-1.12. “Secondary License”
+1.12. "Secondary License"
means either the GNU General Public License, Version 2.0, the GNU Lesser
General Public License, Version 2.1, the GNU Affero General Public
License, Version 3.0, or any later versions of those licenses.
-1.13. “Source Code Form”
+1.13. "Source Code Form"
means the form of the work preferred for making modifications.
-1.14. “You” (or “Your”)
+1.14. "You" (or "Your")
means an individual or a legal entity exercising rights under this
- License. For legal entities, “You” includes any entity that controls, is
+ License. For legal entities, "You" includes any entity that controls, is
controlled by, or is under common control with You. For purposes of this
- definition, “control” means (a) the power, direct or indirect, to cause
+ definition, "control" means (a) the power, direct or indirect, to cause
the direction or management of such entity, whether by contract or
otherwise, or (b) ownership of more than fifty percent (50%) of the
outstanding shares or beneficial ownership of such entity.
@@ -102,57 +102,59 @@ Mozilla Public License, version 2.0
a. under intellectual property rights (other than patent or trademark)
Licensable by such Contributor to use, reproduce, make available,
modify, display, perform, distribute, and otherwise exploit its
- Contributions, either on an unmodified basis, with Modifications, or as
- part of a Larger Work; and
+ Contributions, either on an unmodified basis, with Modifications, or
+ as part of a Larger Work; and
b. under Patent Claims of such Contributor to make, use, sell, offer for
- sale, have made, import, and otherwise transfer either its Contributions
- or its Contributor Version.
+ sale, have made, import, and otherwise transfer either its
+ Contributions or its Contributor Version.
2.2. Effective Date
- The licenses granted in Section 2.1 with respect to any Contribution become
- effective for each Contribution on the date the Contributor first distributes
- such Contribution.
+ The licenses granted in Section 2.1 with respect to any Contribution
+ become effective for each Contribution on the date the Contributor first
+ distributes such Contribution.
2.3. Limitations on Grant Scope
- The licenses granted in this Section 2 are the only rights granted under this
- License. No additional rights or licenses will be implied from the distribution
- or licensing of Covered Software under this License. Notwithstanding Section
- 2.1(b) above, no patent license is granted by a Contributor:
+ The licenses granted in this Section 2 are the only rights granted under
+ this License. No additional rights or licenses will be implied from the
+ distribution or licensing of Covered Software under this License.
+ Notwithstanding Section 2.1(b) above, no patent license is granted by a
+ Contributor:
a. for any code that a Contributor has removed from Covered Software; or
- b. for infringements caused by: (i) Your and any other third party’s
+ b. for infringements caused by: (i) Your and any other third party's
modifications of Covered Software, or (ii) the combination of its
Contributions with other software (except as part of its Contributor
Version); or
- c. under Patent Claims infringed by Covered Software in the absence of its
- Contributions.
+ c. under Patent Claims infringed by Covered Software in the absence of
+ its Contributions.
- This License does not grant any rights in the trademarks, service marks, or
- logos of any Contributor (except as may be necessary to comply with the
- notice requirements in Section 3.4).
+ This License does not grant any rights in the trademarks, service marks,
+ or logos of any Contributor (except as may be necessary to comply with
+ the notice requirements in Section 3.4).
2.4. Subsequent Licenses
No Contributor makes additional grants as a result of Your choice to
- distribute the Covered Software under a subsequent version of this License
- (see Section 10.2) or under the terms of a Secondary License (if permitted
- under the terms of Section 3.3).
+ distribute the Covered Software under a subsequent version of this
+ License (see Section 10.2) or under the terms of a Secondary License (if
+ permitted under the terms of Section 3.3).
2.5. Representation
- Each Contributor represents that the Contributor believes its Contributions
- are its original creation(s) or it has sufficient rights to grant the
- rights to its Contributions conveyed by this License.
+ Each Contributor represents that the Contributor believes its
+ Contributions are its original creation(s) or it has sufficient rights to
+ grant the rights to its Contributions conveyed by this License.
2.6. Fair Use
- This License is not intended to limit any rights You have under applicable
- copyright doctrines of fair use, fair dealing, or other equivalents.
+ This License is not intended to limit any rights You have under
+ applicable copyright doctrines of fair use, fair dealing, or other
+ equivalents.
2.7. Conditions
@@ -165,11 +167,12 @@ Mozilla Public License, version 2.0
3.1. Distribution of Source Form
All distribution of Covered Software in Source Code Form, including any
- Modifications that You create or to which You contribute, must be under the
- terms of this License. You must inform recipients that the Source Code Form
- of the Covered Software is governed by the terms of this License, and how
- they can obtain a copy of this License. You may not attempt to alter or
- restrict the recipients’ rights in the Source Code Form.
+ Modifications that You create or to which You contribute, must be under
+ the terms of this License. You must inform recipients that the Source
+ Code Form of the Covered Software is governed by the terms of this
+ License, and how they can obtain a copy of this License. You may not
+ attempt to alter or restrict the recipients' rights in the Source Code
+ Form.
3.2. Distribution of Executable Form
@@ -181,39 +184,40 @@ Mozilla Public License, version 2.0
reasonable means in a timely manner, at a charge no more than the cost
of distribution to the recipient; and
- b. You may distribute such Executable Form under the terms of this License,
- or sublicense it under different terms, provided that the license for
- the Executable Form does not attempt to limit or alter the recipients’
- rights in the Source Code Form under this License.
+ b. You may distribute such Executable Form under the terms of this
+ License, or sublicense it under different terms, provided that the
+ license for the Executable Form does not attempt to limit or alter the
+ recipients' rights in the Source Code Form under this License.
3.3. Distribution of a Larger Work
You may create and distribute a Larger Work under terms of Your choice,
- provided that You also comply with the requirements of this License for the
- Covered Software. If the Larger Work is a combination of Covered Software
- with a work governed by one or more Secondary Licenses, and the Covered
- Software is not Incompatible With Secondary Licenses, this License permits
- You to additionally distribute such Covered Software under the terms of
- such Secondary License(s), so that the recipient of the Larger Work may, at
- their option, further distribute the Covered Software under the terms of
- either this License or such Secondary License(s).
+ provided that You also comply with the requirements of this License for
+ the Covered Software. If the Larger Work is a combination of Covered
+ Software with a work governed by one or more Secondary Licenses, and the
+ Covered Software is not Incompatible With Secondary Licenses, this
+ License permits You to additionally distribute such Covered Software
+ under the terms of such Secondary License(s), so that the recipient of
+ the Larger Work may, at their option, further distribute the Covered
+ Software under the terms of either this License or such Secondary
+ License(s).
3.4. Notices
- You may not remove or alter the substance of any license notices (including
- copyright notices, patent notices, disclaimers of warranty, or limitations
- of liability) contained within the Source Code Form of the Covered
- Software, except that You may alter any license notices to the extent
- required to remedy known factual inaccuracies.
+ You may not remove or alter the substance of any license notices
+ (including copyright notices, patent notices, disclaimers of warranty, or
+ limitations of liability) contained within the Source Code Form of the
+ Covered Software, except that You may alter any license notices to the
+ extent required to remedy known factual inaccuracies.
3.5. Application of Additional Terms
You may choose to offer, and to charge a fee for, warranty, support,
indemnity or liability obligations to one or more recipients of Covered
- Software. However, You may do so only on Your own behalf, and not on behalf
- of any Contributor. You must make it absolutely clear that any such
- warranty, support, indemnity, or liability obligation is offered by You
- alone, and You hereby agree to indemnify every Contributor for any
+ Software. However, You may do so only on Your own behalf, and not on
+ behalf of any Contributor. You must make it absolutely clear that any
+ such warranty, support, indemnity, or liability obligation is offered by
+ You alone, and You hereby agree to indemnify every Contributor for any
liability incurred by such Contributor as a result of warranty, support,
indemnity or liability terms You offer. You may include additional
disclaimers of warranty and limitations of liability specific to any
@@ -222,14 +226,14 @@ Mozilla Public License, version 2.0
4. Inability to Comply Due to Statute or Regulation
If it is impossible for You to comply with any of the terms of this License
- with respect to some or all of the Covered Software due to statute, judicial
- order, or regulation then You must: (a) comply with the terms of this License
- to the maximum extent possible; and (b) describe the limitations and the code
- they affect. Such description must be placed in a text file included with all
- distributions of the Covered Software under this License. Except to the
- extent prohibited by statute or regulation, such description must be
- sufficiently detailed for a recipient of ordinary skill to be able to
- understand it.
+ with respect to some or all of the Covered Software due to statute,
+ judicial order, or regulation then You must: (a) comply with the terms of
+ this License to the maximum extent possible; and (b) describe the
+ limitations and the code they affect. Such description must be placed in a
+ text file included with all distributions of the Covered Software under
+ this License. Except to the extent prohibited by statute or regulation,
+ such description must be sufficiently detailed for a recipient of ordinary
+ skill to be able to understand it.
5. Termination
@@ -237,21 +241,22 @@ Mozilla Public License, version 2.0
fail to comply with any of its terms. However, if You become compliant,
then the rights granted under this License from a particular Contributor
are reinstated (a) provisionally, unless and until such Contributor
- explicitly and finally terminates Your grants, and (b) on an ongoing basis,
- if such Contributor fails to notify You of the non-compliance by some
- reasonable means prior to 60 days after You have come back into compliance.
- Moreover, Your grants from a particular Contributor are reinstated on an
- ongoing basis if such Contributor notifies You of the non-compliance by
- some reasonable means, this is the first time You have received notice of
- non-compliance with this License from such Contributor, and You become
- compliant prior to 30 days after Your receipt of the notice.
+ explicitly and finally terminates Your grants, and (b) on an ongoing
+ basis, if such Contributor fails to notify You of the non-compliance by
+ some reasonable means prior to 60 days after You have come back into
+ compliance. Moreover, Your grants from a particular Contributor are
+ reinstated on an ongoing basis if such Contributor notifies You of the
+ non-compliance by some reasonable means, this is the first time You have
+ received notice of non-compliance with this License from such
+ Contributor, and You become compliant prior to 30 days after Your receipt
+ of the notice.
5.2. If You initiate litigation against any entity by asserting a patent
- infringement claim (excluding declaratory judgment actions, counter-claims,
- and cross-claims) alleging that a Contributor Version directly or
- indirectly infringes any patent, then the rights granted to You by any and
- all Contributors for the Covered Software under Section 2.1 of this License
- shall terminate.
+ infringement claim (excluding declaratory judgment actions,
+ counter-claims, and cross-claims) alleging that a Contributor Version
+ directly or indirectly infringes any patent, then the rights granted to
+ You by any and all Contributors for the Covered Software under Section
+ 2.1 of this License shall terminate.
5.3. In the event of termination under Sections 5.1 or 5.2 above, all end user
license agreements (excluding distributors and resellers) which have been
@@ -260,16 +265,16 @@ Mozilla Public License, version 2.0
6. Disclaimer of Warranty
- Covered Software is provided under this License on an “as is” basis, without
- warranty of any kind, either expressed, implied, or statutory, including,
- without limitation, warranties that the Covered Software is free of defects,
- merchantable, fit for a particular purpose or non-infringing. The entire
- risk as to the quality and performance of the Covered Software is with You.
- Should any Covered Software prove defective in any respect, You (not any
- Contributor) assume the cost of any necessary servicing, repair, or
- correction. This disclaimer of warranty constitutes an essential part of this
- License. No use of any Covered Software is authorized under this License
- except under this disclaimer.
+ Covered Software is provided under this License on an "as is" basis,
+ without warranty of any kind, either expressed, implied, or statutory,
+ including, without limitation, warranties that the Covered Software is free
+ of defects, merchantable, fit for a particular purpose or non-infringing.
+ The entire risk as to the quality and performance of the Covered Software
+ is with You. Should any Covered Software prove defective in any respect,
+ You (not any Contributor) assume the cost of any necessary servicing,
+ repair, or correction. This disclaimer of warranty constitutes an essential
+ part of this License. No use of any Covered Software is authorized under
+ this License except under this disclaimer.
7. Limitation of Liability
@@ -281,27 +286,29 @@ Mozilla Public License, version 2.0
goodwill, work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses, even if such party shall have been
informed of the possibility of such damages. This limitation of liability
- shall not apply to liability for death or personal injury resulting from such
- party’s negligence to the extent applicable law prohibits such limitation.
- Some jurisdictions do not allow the exclusion or limitation of incidental or
- consequential damages, so this exclusion and limitation may not apply to You.
+ shall not apply to liability for death or personal injury resulting from
+ such party's negligence to the extent applicable law prohibits such
+ limitation. Some jurisdictions do not allow the exclusion or limitation of
+ incidental or consequential damages, so this exclusion and limitation may
+ not apply to You.
8. Litigation
- Any litigation relating to this License may be brought only in the courts of
- a jurisdiction where the defendant maintains its principal place of business
- and such litigation shall be governed by laws of that jurisdiction, without
- reference to its conflict-of-law provisions. Nothing in this Section shall
- prevent a party’s ability to bring cross-claims or counter-claims.
+ Any litigation relating to this License may be brought only in the courts
+ of a jurisdiction where the defendant maintains its principal place of
+ business and such litigation shall be governed by laws of that
+ jurisdiction, without reference to its conflict-of-law provisions. Nothing
+ in this Section shall prevent a party's ability to bring cross-claims or
+ counter-claims.
9. Miscellaneous
- This License represents the complete agreement concerning the subject matter
- hereof. If any provision of this License is held to be unenforceable, such
- provision shall be reformed only to the extent necessary to make it
- enforceable. Any law or regulation which provides that the language of a
- contract shall be construed against the drafter shall not be used to construe
- this License against a Contributor.
+ This License represents the complete agreement concerning the subject
+ matter hereof. If any provision of this License is held to be
+ unenforceable, such provision shall be reformed only to the extent
+ necessary to make it enforceable. Any law or regulation which provides that
+ the language of a contract shall be construed against the drafter shall not
+ be used to construe this License against a Contributor.
10. Versions of the License
@@ -315,23 +322,24 @@ Mozilla Public License, version 2.0
10.2. Effect of New Versions
- You may distribute the Covered Software under the terms of the version of
- the License under which You originally received the Covered Software, or
- under the terms of any subsequent version published by the license
+ You may distribute the Covered Software under the terms of the version
+ of the License under which You originally received the Covered Software,
+ or under the terms of any subsequent version published by the license
steward.
10.3. Modified Versions
If you create software not governed by this License, and you want to
- create a new license for such software, you may create and use a modified
- version of this License if you rename the license and remove any
- references to the name of the license steward (except to note that such
- modified license differs from this License).
+ create a new license for such software, you may create and use a
+ modified version of this License if you rename the license and remove
+ any references to the name of the license steward (except to note that
+ such modified license differs from this License).
-10.4. Distributing Source Code Form that is Incompatible With Secondary Licenses
- If You choose to distribute Source Code Form that is Incompatible With
- Secondary Licenses under the terms of this version of the License, the
- notice described in Exhibit B of this License must be attached.
+10.4. Distributing Source Code Form that is Incompatible With Secondary
+ Licenses If You choose to distribute Source Code Form that is
+ Incompatible With Secondary Licenses under the terms of this version of
+ the License, the notice described in Exhibit B of this License must be
+ attached.
Exhibit A - Source Code Form License Notice
@@ -342,15 +350,15 @@ Exhibit A - Source Code Form License Notice
obtain one at
http://mozilla.org/MPL/2.0/.
-If it is not possible or desirable to put the notice in a particular file, then
-You may include the notice in a location (such as a LICENSE file in a relevant
-directory) where a recipient would be likely to look for such a notice.
+If it is not possible or desirable to put the notice in a particular file,
+then You may include the notice in a location (such as a LICENSE file in a
+relevant directory) where a recipient would be likely to look for such a
+notice.
You may add additional accurate notices of copyright ownership.
-Exhibit B - “Incompatible With Secondary Licenses” Notice
+Exhibit B - "Incompatible With Secondary Licenses" Notice
- This Source Code Form is “Incompatible
- With Secondary Licenses”, as defined by
+ This Source Code Form is "Incompatible
+ With Secondary Licenses", as defined by
the Mozilla Public License, v. 2.0.
-
diff --git a/licenses-binary/LICENSE-hashicorp-terraform-plugin-log.txt b/licenses-binary/LICENSE-hashicorp-terraform-plugin-log.txt
index 84cd064..b002499 100644
--- a/licenses-binary/LICENSE-hashicorp-terraform-plugin-log.txt
+++ b/licenses-binary/LICENSE-hashicorp-terraform-plugin-log.txt
@@ -1,4 +1,4 @@
-Copyright (c) 2021 HashiCorp, Inc.
+Copyright IBM Corp. 2021, 2026
Mozilla Public License, version 2.0
diff --git a/licenses-binary/LICENSE-hashicorp-terraform-svchost.txt b/licenses-binary/LICENSE-hashicorp-terraform-svchost.txt
index 342bbb5..f6d6794 100644
--- a/licenses-binary/LICENSE-hashicorp-terraform-svchost.txt
+++ b/licenses-binary/LICENSE-hashicorp-terraform-svchost.txt
@@ -1,4 +1,4 @@
-Copyright (c) 2019 HashiCorp, Inc.
+Copyright IBM Corp. 2017, 2025
Mozilla Public License, version 2.0
diff --git a/licenses-binary/LICENSE-golang-snappy.txt b/licenses-binary/LICENSE-klauspost-compress-s2.txt
similarity index 96%
rename from licenses-binary/LICENSE-golang-snappy.txt
rename to licenses-binary/LICENSE-klauspost-compress-s2.txt
index 6050c10..1d2d645 100644
--- a/licenses-binary/LICENSE-golang-snappy.txt
+++ b/licenses-binary/LICENSE-klauspost-compress-s2.txt
@@ -1,4 +1,5 @@
Copyright (c) 2011 The Snappy-Go Authors. All rights reserved.
+Copyright (c) 2019 Klaus Post. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
diff --git a/licenses-binary/LICENSE-rivo-uniseg.txt b/licenses-binary/LICENSE-twmb-avro.txt
similarity index 96%
rename from licenses-binary/LICENSE-rivo-uniseg.txt
rename to licenses-binary/LICENSE-twmb-avro.txt
index 5040f1e..79adad6 100644
--- a/licenses-binary/LICENSE-rivo-uniseg.txt
+++ b/licenses-binary/LICENSE-twmb-avro.txt
@@ -1,6 +1,6 @@
MIT License
-Copyright (c) 2019 Oliver Kuederle
+Copyright (c) 2026 Travis Bischel
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal