diff --git a/.tool/check-license b/.tool/check-license index 11baafc5f..2f4d88b04 100755 --- a/.tool/check-license +++ b/.tool/check-license @@ -1,5 +1,19 @@ #!/usr/bin/env bash +# Copyright the Open Container Initiative Contributors. +# +# Licensed 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. + set -o errexit set -o nounset set -o pipefail @@ -7,7 +21,7 @@ set -o pipefail ret=0 for file in $(find . -type f -iname '*.go' ! -path './vendor/*'); do - if ! head -n3 "${file}" | grep -Eq "(Copyright|generated|GENERATED)"; then + if ! head -n3 "${file}" | grep -Eq "(Copyright the Open Container Initiative Contributors|generated|GENERATED)"; then echo "${file}:missing license header" ret=1 fi diff --git a/.tool/curver.go b/.tool/curver.go index e4252cd79..aaa6700b6 100644 --- a/.tool/curver.go +++ b/.tool/curver.go @@ -1,4 +1,4 @@ -// Copyright 2025 The Linux Foundation +// Copyright the Open Container Initiative Contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/.tool/pin-release.sh b/.tool/pin-release.sh index 7b43702b9..5205cc7bb 100755 --- a/.tool/pin-release.sh +++ b/.tool/pin-release.sh @@ -1,5 +1,19 @@ #!/bin/sh +# Copyright the Open Container Initiative Contributors. +# +# Licensed 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. + set -e cd "$(dirname $0)/.." diff --git a/LICENSE b/LICENSE index 9fdc20fdb..d64569567 100644 --- a/LICENSE +++ b/LICENSE @@ -176,7 +176,18 @@ END OF TERMS AND CONDITIONS - Copyright 2016 The Linux Foundation. + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/identity/chainid.go b/identity/chainid.go index 0bb285357..891dc4985 100644 --- a/identity/chainid.go +++ b/identity/chainid.go @@ -1,4 +1,4 @@ -// Copyright 2016 The Linux Foundation +// Copyright the Open Container Initiative Contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/identity/chainid_test.go b/identity/chainid_test.go index 241dd9113..5e18b0ff6 100644 --- a/identity/chainid_test.go +++ b/identity/chainid_test.go @@ -1,4 +1,4 @@ -// Copyright 2016 The Linux Foundation +// Copyright the Open Container Initiative Contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/identity/helpers.go b/identity/helpers.go index 9d96eaa98..489781f12 100644 --- a/identity/helpers.go +++ b/identity/helpers.go @@ -1,4 +1,4 @@ -// Copyright 2016 The Linux Foundation +// Copyright the Open Container Initiative Contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/schema/backwards_compatibility_test.go b/schema/backwards_compatibility_test.go index ca17bbc04..24c8d3dac 100644 --- a/schema/backwards_compatibility_test.go +++ b/schema/backwards_compatibility_test.go @@ -1,4 +1,4 @@ -// Copyright 2016 The Linux Foundation +// Copyright the Open Container Initiative Contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/schema/config_test.go b/schema/config_test.go index 9daa41e5c..c67692770 100644 --- a/schema/config_test.go +++ b/schema/config_test.go @@ -1,4 +1,4 @@ -// Copyright 2016 The Linux Foundation +// Copyright the Open Container Initiative Contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/schema/descriptor_test.go b/schema/descriptor_test.go index 0c8a3716e..94f9f8d4c 100644 --- a/schema/descriptor_test.go +++ b/schema/descriptor_test.go @@ -1,4 +1,4 @@ -// Copyright 2016 The Linux Foundation +// Copyright the Open Container Initiative Contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/schema/doc.go b/schema/doc.go index 5ea5914d0..79ca9ac6e 100644 --- a/schema/doc.go +++ b/schema/doc.go @@ -1,4 +1,4 @@ -// Copyright 2016 The Linux Foundation +// Copyright the Open Container Initiative Contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/schema/error.go b/schema/error.go index 2f52fc84d..dc9867499 100644 --- a/schema/error.go +++ b/schema/error.go @@ -1,4 +1,4 @@ -// Copyright 2016 The Linux Foundation +// Copyright the Open Container Initiative Contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/schema/imageindex_test.go b/schema/imageindex_test.go index 7b04935e0..bc230feb3 100644 --- a/schema/imageindex_test.go +++ b/schema/imageindex_test.go @@ -1,4 +1,4 @@ -// Copyright 2016 The Linux Foundation +// Copyright the Open Container Initiative Contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/schema/imagelayout_test.go b/schema/imagelayout_test.go index 144ff08be..6ef638122 100644 --- a/schema/imagelayout_test.go +++ b/schema/imagelayout_test.go @@ -1,4 +1,4 @@ -// Copyright 2016 The Linux Foundation +// Copyright the Open Container Initiative Contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/schema/manifest_test.go b/schema/manifest_test.go index 732b1561a..98bd59a77 100644 --- a/schema/manifest_test.go +++ b/schema/manifest_test.go @@ -1,4 +1,4 @@ -// Copyright 2016 The Linux Foundation +// Copyright the Open Container Initiative Contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/schema/schema.go b/schema/schema.go index 40400fce4..0f9340e3e 100644 --- a/schema/schema.go +++ b/schema/schema.go @@ -1,4 +1,4 @@ -// Copyright 2016 The Linux Foundation +// Copyright the Open Container Initiative Contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/schema/spec_test.go b/schema/spec_test.go index a12034f27..d454af908 100644 --- a/schema/spec_test.go +++ b/schema/spec_test.go @@ -1,4 +1,4 @@ -// Copyright 2016 The Linux Foundation +// Copyright the Open Container Initiative Contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/schema/validator.go b/schema/validator.go index e32367346..ce5053828 100644 --- a/schema/validator.go +++ b/schema/validator.go @@ -1,4 +1,4 @@ -// Copyright 2016 The Linux Foundation +// Copyright the Open Container Initiative Contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/specs-go/v1/annotations.go b/specs-go/v1/annotations.go index 581cf7cdf..f8bb8b74a 100644 --- a/specs-go/v1/annotations.go +++ b/specs-go/v1/annotations.go @@ -1,4 +1,4 @@ -// Copyright 2016 The Linux Foundation +// Copyright the Open Container Initiative Contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/specs-go/v1/config.go b/specs-go/v1/config.go index 2919fa10c..aecf9a52b 100644 --- a/specs-go/v1/config.go +++ b/specs-go/v1/config.go @@ -1,4 +1,4 @@ -// Copyright 2016 The Linux Foundation +// Copyright the Open Container Initiative Contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/specs-go/v1/descriptor.go b/specs-go/v1/descriptor.go index 1881b1181..4a8f959c3 100644 --- a/specs-go/v1/descriptor.go +++ b/specs-go/v1/descriptor.go @@ -1,4 +1,4 @@ -// Copyright 2016-2022 The Linux Foundation +// Copyright the Open Container Initiative Contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/specs-go/v1/index.go b/specs-go/v1/index.go index e2bed9d4e..43bcc52c0 100644 --- a/specs-go/v1/index.go +++ b/specs-go/v1/index.go @@ -1,4 +1,4 @@ -// Copyright 2016 The Linux Foundation +// Copyright the Open Container Initiative Contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/specs-go/v1/layout.go b/specs-go/v1/layout.go index c5503cb30..4af68a678 100644 --- a/specs-go/v1/layout.go +++ b/specs-go/v1/layout.go @@ -1,4 +1,4 @@ -// Copyright 2016 The Linux Foundation +// Copyright the Open Container Initiative Contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/specs-go/v1/manifest.go b/specs-go/v1/manifest.go index 26fec52a6..a64420526 100644 --- a/specs-go/v1/manifest.go +++ b/specs-go/v1/manifest.go @@ -1,4 +1,4 @@ -// Copyright 2016-2022 The Linux Foundation +// Copyright the Open Container Initiative Contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/specs-go/v1/mediatype.go b/specs-go/v1/mediatype.go index ce8313e79..2929b4586 100644 --- a/specs-go/v1/mediatype.go +++ b/specs-go/v1/mediatype.go @@ -1,4 +1,4 @@ -// Copyright 2016 The Linux Foundation +// Copyright the Open Container Initiative Contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/specs-go/version.go b/specs-go/version.go index cc8807866..f6ef0a2aa 100644 --- a/specs-go/version.go +++ b/specs-go/version.go @@ -1,4 +1,4 @@ -// Copyright 2016 The Linux Foundation +// Copyright the Open Container Initiative Contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/specs-go/versioned.go b/specs-go/versioned.go index 58a1510f3..53558b657 100644 --- a/specs-go/versioned.go +++ b/specs-go/versioned.go @@ -1,4 +1,4 @@ -// Copyright 2016 The Linux Foundation +// Copyright the Open Container Initiative Contributors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License.