Skip to content

Commit 98930e0

Browse files
committed
use same regex as google/go-licenses
1 parent 4ea9fc5 commit 98930e0

File tree

3 files changed

+158
-2
lines changed

3 files changed

+158
-2
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ tidy-check: tidy
415415
.PHONY: go-licenses
416416
go-licenses: assets/go-licenses.txt
417417

418-
assets/go-licenses.txt: go.mod go.sum
418+
assets/go-licenses.txt: go.mod go.sum build/generate-go-licenses.js
419419
-$(GO) run $(GO_LICENSES_PACKAGE) save . --force --save_path="$(GO_LICENSE_TMP_DIR)"
420420
node build/generate-go-licenses.js "$(GO_LICENSE_TMP_DIR)" "$(GO_LICENSE_FILE)"
421421
rm -rf "$(GO_LICENSE_TMP_DIR)"

assets/go-licenses.txt

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1820,6 +1820,29 @@ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
18201820
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
18211821
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
18221822

1823+
--------------------------------------------------------------------------------
1824+
github.com/alecthomas/chroma
1825+
--------------------------------------------------------------------------------
1826+
Copyright (C) 2017 Alec Thomas
1827+
1828+
Permission is hereby granted, free of charge, to any person obtaining a copy of
1829+
this software and associated documentation files (the "Software"), to deal in
1830+
the Software without restriction, including without limitation the rights to
1831+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
1832+
of the Software, and to permit persons to whom the Software is furnished to do
1833+
so, subject to the following conditions:
1834+
1835+
The above copyright notice and this permission notice shall be included in all
1836+
copies or substantial portions of the Software.
1837+
1838+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1839+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
1840+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
1841+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1842+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
1843+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
1844+
SOFTWARE.
1845+
18231846
--------------------------------------------------------------------------------
18241847
github.com/andybalholm/brotli
18251848
--------------------------------------------------------------------------------
@@ -2844,6 +2867,39 @@ distributed under the License is distributed on an "AS IS" BASIS,
28442867
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
28452868
See the License for the specific language governing permissions and
28462869
limitations under the License.
2870+
--------------------------------------------------------------------------------
2871+
github.com/blevesearch/snowballstem
2872+
--------------------------------------------------------------------------------
2873+
Copyright (c) 2001, Dr Martin Porter
2874+
Copyright (c) 2004,2005, Richard Boulton
2875+
Copyright (c) 2013, Yoshiki Shibukawa
2876+
Copyright (c) 2006,2007,2009,2010,2011,2014-2019, Olly Betts
2877+
All rights reserved.
2878+
2879+
Redistribution and use in source and binary forms, with or without
2880+
modification, are permitted provided that the following conditions
2881+
are met:
2882+
2883+
1. Redistributions of source code must retain the above copyright notice,
2884+
this list of conditions and the following disclaimer.
2885+
2. Redistributions in binary form must reproduce the above copyright notice,
2886+
this list of conditions and the following disclaimer in the documentation
2887+
and/or other materials provided with the distribution.
2888+
3. Neither the name of the Snowball project nor the names of its contributors
2889+
may be used to endorse or promote products derived from this software
2890+
without specific prior written permission.
2891+
2892+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
2893+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
2894+
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
2895+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
2896+
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
2897+
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
2898+
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
2899+
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2900+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
2901+
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2902+
28472903
--------------------------------------------------------------------------------
28482904
github.com/blevesearch/upsidedown_store_api
28492905
--------------------------------------------------------------------------------
@@ -10045,6 +10101,11 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1004510101
See the License for the specific language governing permissions and
1004610102
limitations under the License.
1004710103

10104+
--------------------------------------------------------------------------------
10105+
github.com/matttproud/golang_protobuf_extensions/pbutil
10106+
--------------------------------------------------------------------------------
10107+
Copyright 2012 Matt T. Proud ([email protected])
10108+
1004810109
--------------------------------------------------------------------------------
1004910110
github.com/mholt/acmez
1005010111
--------------------------------------------------------------------------------
@@ -10755,6 +10816,19 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1075510816
See the License for the specific language governing permissions and
1075610817
limitations under the License.
1075710818

10819+
--------------------------------------------------------------------------------
10820+
github.com/minio/minio-go/v7
10821+
--------------------------------------------------------------------------------
10822+
MinIO Cloud Storage, (C) 2014-2020 MinIO, Inc.
10823+
10824+
This product includes software developed at MinIO, Inc.
10825+
(https://min.io/).
10826+
10827+
The MinIO project contains unmodified/modified subcomponents too with
10828+
separate copyright notices and license terms. Your use of the source
10829+
code for these subcomponents is subject to the terms and conditions
10830+
of Apache License Version 2.0
10831+
1075810832
--------------------------------------------------------------------------------
1075910833
github.com/minio/sha256-simd
1076010834
--------------------------------------------------------------------------------
@@ -11823,6 +11897,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1182311897
See the License for the specific language governing permissions and
1182411898
limitations under the License.
1182511899

11900+
--------------------------------------------------------------------------------
11901+
github.com/pquerna/otp
11902+
--------------------------------------------------------------------------------
11903+
otp
11904+
Copyright (c) 2014, Paul Querna
11905+
11906+
This product includes software developed by
11907+
Paul Querna (http://paul.querna.org/).
11908+
1182611909
--------------------------------------------------------------------------------
1182711910
github.com/prometheus/client_golang/prometheus
1182811911
--------------------------------------------------------------------------------
@@ -12028,6 +12111,33 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1202812111
See the License for the specific language governing permissions and
1202912112
limitations under the License.
1203012113

12114+
--------------------------------------------------------------------------------
12115+
github.com/prometheus/client_golang/prometheus
12116+
--------------------------------------------------------------------------------
12117+
Prometheus instrumentation library for Go applications
12118+
Copyright 2012-2015 The Prometheus Authors
12119+
12120+
This product includes software developed at
12121+
SoundCloud Ltd. (http://soundcloud.com/).
12122+
12123+
12124+
The following components are included in this product:
12125+
12126+
perks - a fork of https://github.com/bmizerany/perks
12127+
https://github.com/beorn7/perks
12128+
Copyright 2013-2015 Blake Mizerany, Björn Rabenstein
12129+
See https://github.com/beorn7/perks/blob/master/README.md for license details.
12130+
12131+
Go support for Protocol Buffers - Google's data interchange format
12132+
http://github.com/golang/protobuf/
12133+
Copyright 2010 The Go Authors
12134+
See source code for license details.
12135+
12136+
Support for streaming Protocol Buffer messages for the Go language (golang).
12137+
https://github.com/matttproud/golang_protobuf_extensions
12138+
Copyright 2013 Matt T. Proud
12139+
Licensed under the Apache License, Version 2.0
12140+
1203112141
--------------------------------------------------------------------------------
1203212142
github.com/prometheus/client_model/go
1203312143
--------------------------------------------------------------------------------
@@ -12233,6 +12343,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1223312343
See the License for the specific language governing permissions and
1223412344
limitations under the License.
1223512345

12346+
--------------------------------------------------------------------------------
12347+
github.com/prometheus/client_model/go
12348+
--------------------------------------------------------------------------------
12349+
Data model artifacts for Prometheus.
12350+
Copyright 2012-2015 The Prometheus Authors
12351+
12352+
This product includes software developed at
12353+
SoundCloud Ltd. (http://soundcloud.com/).
12354+
1223612355
--------------------------------------------------------------------------------
1223712356
github.com/prometheus/common
1223812357
--------------------------------------------------------------------------------
@@ -12438,6 +12557,15 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1243812557
See the License for the specific language governing permissions and
1243912558
limitations under the License.
1244012559

12560+
--------------------------------------------------------------------------------
12561+
github.com/prometheus/common
12562+
--------------------------------------------------------------------------------
12563+
Common libraries shared by Prometheus Go components.
12564+
Copyright 2015 The Prometheus Authors
12565+
12566+
This product includes software developed at
12567+
SoundCloud Ltd. (http://soundcloud.com/).
12568+
1244112569
--------------------------------------------------------------------------------
1244212570
github.com/prometheus/procfs
1244312571
--------------------------------------------------------------------------------
@@ -12643,6 +12771,17 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1264312771
See the License for the specific language governing permissions and
1264412772
limitations under the License.
1264512773

12774+
--------------------------------------------------------------------------------
12775+
github.com/prometheus/procfs
12776+
--------------------------------------------------------------------------------
12777+
procfs provides functions to retrieve system, kernel and process
12778+
metrics from the pseudo-filesystem proc.
12779+
12780+
Copyright 2014-2015 The Prometheus Authors
12781+
12782+
This product includes software developed at
12783+
SoundCloud Ltd. (http://soundcloud.com/).
12784+
1264612785
--------------------------------------------------------------------------------
1264712786
github.com/rivo/uniseg
1264812787
--------------------------------------------------------------------------------
@@ -14433,6 +14572,23 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1443314572
See the License for the specific language governing permissions and
1443414573
limitations under the License.
1443514574

14575+
--------------------------------------------------------------------------------
14576+
gopkg.in/yaml.v2
14577+
--------------------------------------------------------------------------------
14578+
Copyright 2011-2016 Canonical Ltd.
14579+
14580+
Licensed under the Apache License, Version 2.0 (the "License");
14581+
you may not use this file except in compliance with the License.
14582+
You may obtain a copy of the License at
14583+
14584+
http://www.apache.org/licenses/LICENSE-2.0
14585+
14586+
Unless required by applicable law or agreed to in writing, software
14587+
distributed under the License is distributed on an "AS IS" BASIS,
14588+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14589+
See the License for the specific language governing permissions and
14590+
limitations under the License.
14591+
1443614592
--------------------------------------------------------------------------------
1443714593
mvdan.cc/xurls/v2
1443814594
--------------------------------------------------------------------------------

build/generate-go-licenses.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function exit(err) {
2020
async function main() {
2121
const line = '-'.repeat(80);
2222
const str = glob(['**/*']).sort().filter((path) => {
23-
return /\/license/i.test(path);
23+
return /\/((UN)?LICEN(S|C)E|COPYING|NOTICE)/i.test(path);
2424
}).map((path) => {
2525
const body = wrapAnsi(readFileSync(join(base, path), 'utf8') || '', 80);
2626
const name = dirname(path);

0 commit comments

Comments
 (0)