Skip to content

Commit ea5c2ff

Browse files
committed
Update THIRD_PARTY_LICENSES tool
1 parent b606eef commit ea5c2ff

5 files changed

Lines changed: 25 additions & 27 deletions

File tree

Makefile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ bench:
1616
go test -v -bench=. ./...
1717

1818
dep-licenses:
19-
go-licenses save ./ --save_path=THIRD_PARTY_LICENSES
20-
build_notice.sh
21-
22-
modernize:
23-
go run golang.org/x/tools/gopls/internal/analysis/modernize/cmd/modernize@latest -fix=true ./...
19+
rm -rf THIRD_PARTY_LICENSES
20+
go run github.com/google/go-licenses/v2@latest save ./ --save_path=THIRD_PARTY_LICENSES
21+
bash build_notice.sh

NOTICE

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,38 +3,38 @@ NOTICE
33
This product includes software developed by [github.com/ringsaturn/tzf].
44
------------------------------------------------------------------------
55

6-
protobuf
6+
google.golang.org/protobuf
77
License: MIT
88
Copyright (c) 2018 The Go Authors. All rights reserved.
99

10-
mongo-driver
10+
go.mongodb.org/mongo-driver/v2
1111
License: Apache
1212
"Licensor" shall mean the copyright owner or entity authorized by
1313

14-
mapstructure
14+
github.com/mitchellh/mapstructure
1515
License: MIT
1616
Copyright (c) 2013 Mitchell Hashimoto
1717

18-
go-polyline
18+
github.com/twpayne/go-polyline
1919
License: MIT
2020
Copyright (c) 2013, Tom Payne
2121

22-
geometry
22+
github.com/tidwall/geojson/geometry
2323
License: MIT
2424
Copyright (c) 2018 Josh Baker
2525

26-
child
26+
github.com/tidwall/geoindex/child
2727
License: MIT
2828
Copyright (c) 2018 Josh Baker
2929

30-
rtree
30+
github.com/tidwall/rtree
3131
License: MIT
3232
Copyright (c) 2021 Josh Baker
3333

34-
tzf
34+
github.com/ringsaturn/tzf
3535
License: MIT
3636
Copyright (c) 2022 ringsaturn
3737

38-
maps
38+
github.com/ringsaturn/tzf/internal/maps
3939
License: MIT
4040
Copyright 2009 The Go Authors.

THIRD_PARTY_LICENSES/github.com/ringsaturn/tzf/NOTICE

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,38 +3,38 @@ NOTICE
33
This product includes software developed by [github.com/ringsaturn/tzf].
44
------------------------------------------------------------------------
55

6-
protobuf
6+
google.golang.org/protobuf
77
License: MIT
88
Copyright (c) 2018 The Go Authors. All rights reserved.
99

10-
mongo-driver
10+
go.mongodb.org/mongo-driver/v2
1111
License: Apache
1212
"Licensor" shall mean the copyright owner or entity authorized by
1313

14-
exp
15-
License: MIT
16-
Copyright (c) 2009 The Go Authors. All rights reserved.
17-
18-
mapstructure
14+
github.com/mitchellh/mapstructure
1915
License: MIT
2016
Copyright (c) 2013 Mitchell Hashimoto
2117

22-
go-polyline
18+
github.com/twpayne/go-polyline
2319
License: MIT
2420
Copyright (c) 2013, Tom Payne
2521

26-
geometry
22+
github.com/tidwall/geojson/geometry
2723
License: MIT
2824
Copyright (c) 2018 Josh Baker
2925

30-
child
26+
github.com/tidwall/geoindex/child
3127
License: MIT
3228
Copyright (c) 2018 Josh Baker
3329

34-
rtree
30+
github.com/tidwall/rtree
3531
License: MIT
3632
Copyright (c) 2021 Josh Baker
3733

38-
tzf
34+
github.com/ringsaturn/tzf
3935
License: MIT
4036
Copyright (c) 2022 ringsaturn
37+
38+
github.com/ringsaturn/tzf/internal/maps
39+
License: MIT
40+
Copyright 2009 The Go Authors.

THIRD_PARTY_LICENSES/go.mongodb.org/mongo-driver/LICENSE renamed to THIRD_PARTY_LICENSES/go.mongodb.org/mongo-driver/v2/LICENSE

File renamed without changes.

build_notice.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ echo "This product includes software developed by [github.com/ringsaturn/tzf]."
44
echo "------------------------------------------------------------------------" >> NOTICE
55

66
for license_file in $(find THIRD_PARTY_LICENSES -name LICENSE); do
7-
dependency=$(basename $(dirname $license_file))
7+
dependency=$(dirname $license_file | sed 's|^THIRD_PARTY_LICENSES/||')
88
license_type=$(grep -E -o "(MIT|BSD|Apache)" $license_file | head -1)
99
copyright=$(grep -i "copyright" $license_file | head -1)
1010

0 commit comments

Comments
 (0)