forked from istio/istio
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add check flag to license scanner (istio#9149)
* Add check flag to license scanner * Fix review comments, append manually added licenses * Minor fixes * Fix lint * Change map to use enum type * Change var name
- Loading branch information
1 parent
34ea91d
commit 556962d
Showing
4 changed files
with
323 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
# Istio License Generation Guide | ||
## Usage | ||
Note: This tool requires https://github.com/benbalter/licensee for --summary and --match_detail to work. | ||
The --branch flag is only used in generating links to licenses in the appropriate branch in istio/istio. | ||
Licenses under manual_append have been manually copied and OK'd (usually because the package source only | ||
contains a link). | ||
#### Generate complete dump of every license, suitable for including in release build/binary image: | ||
go run get_dep_licenses.go | ||
go run get_dep_licenses.go --branch release-1.0.1 | ||
#### CSV format output with one package per line: | ||
go run get_dep_licenses.go --summary | ||
go run get_dep_licenses.go --summary --branch release-1.0.1 | ||
#### Detailed info about how closely each license matches official text: | ||
go run get_dep_licenses.go --match-detail | ||
go run get_dep_licenses.go --match-detail --branch release-1.0.1 | ||
#### Use a different branch from the current one. Will do git checkout to that branch and back to the current on completion. This can only be used from inside Istio repo: | ||
go run get_dep_licenses.go --branch release-0.8 | ||
go run get_dep_licenses.go --branch release-1.0.1 --checkout | ||
#### Check if all licenses are Google approved. Outputs lists of restricted, reciprocal, missing, and unknown status licenses. | ||
go run get_dep_licenses.go --check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Package: github.com/signalfx/com_signalfx_metrics_protobuf | ||
License URL: https://github.com/istio/istio/blob/release-1.0/vendor/github.com/signalfx/com_signalfx_metrics_protobuf | ||
License text: | ||
## License | ||
|
||
Apache Software License v2. Copyright © 2015-2017 SignalFx | ||
|
||
----------------------------------------------------------- |
Oops, something went wrong.