Skip to content

Commit

Permalink
fix(license): Correct spelling of jmhodges/clock license (#14419)
Browse files Browse the repository at this point in the history
  • Loading branch information
srebhan authored Dec 8, 2023
1 parent fbd2dcc commit 31ba5d9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/LICENSE_OF_DEPENDENCIES.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ following works:
- github.com/jeremywohl/flatten [MIT License](https://github.com/jeremywohl/flatten/blob/master/LICENSE)
- github.com/jhump/protoreflect [Apache License 2.0](https://github.com/jhump/protoreflect/blob/master/LICENSE)
- github.com/jmespath/go-jmespath [Apache License 2.0](https://github.com/jmespath/go-jmespath/blob/master/LICENSE)
- github.com/jmhodges/clock [MIT Licence](https://github.com/jmhodges/clock/blob/main/LICENSE)
- github.com/jmhodges/clock [MIT License](https://github.com/jmhodges/clock/blob/main/LICENSE)
- github.com/josharian/intern [MIT License](https://github.com/josharian/intern/blob/master/LICENSE.md)
- github.com/josharian/native [MIT License](https://github.com/josharian/native/blob/main/license)
- github.com/jpillora/backoff [MIT License](https://github.com/jpillora/backoff/blob/master/LICENSE)
Expand Down
5 changes: 5 additions & 0 deletions tools/license_checker/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ func (pkg *packageInfo) ToSPDX() {
}

func (pkg *packageInfo) Classify() (float64, error) {
// Check for a valid SPDX
if pkg.spdx == "" {
return 0.0, fmt.Errorf("empty SPDX for license %q", pkg.license)
}

// Download the license text
source, err := normalizeURL(pkg.url)
if err != nil {
Expand Down

0 comments on commit 31ba5d9

Please sign in to comment.