Skip to content

Commit ed138b1

Browse files
authored
Merge pull request #79 from github/elr/prep-2.3.0
Prep for release 2.3.0
2 parents 848f7ad + 0737660 commit ed138b1

File tree

8 files changed

+36
-2
lines changed

8 files changed

+36
-2
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
[![Go Reference](https://pkg.go.dev/badge/github.com/github/go-spdx/v2@v2.1.2/spdxexp.svg)](https://pkg.go.dev/github.com/github/go-spdx/v2@v2.1.2/spdxexp)
1+
[![Go Reference](https://pkg.go.dev/badge/github.com/github/go-spdx/v2@v2.3.0/spdxexp.svg)](https://pkg.go.dev/github.com/github/go-spdx/v2@v2.3.0/spdxexp)
2+
[![Go Reference](https://pkg.go.dev/badge/github.com/github/go-spdx/v2@v2.3.0/spdxlicenses.svg)](https://pkg.go.dev/github.com/github/go-spdx/v2@v2.3.0/spdxlicenses)
23

34
# go-spdx
45

cmd/exceptions.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ func extractExceptionLicenseIDs() error {
5151
// generate the GetExceptions() function in get_exceptions.go
5252
getExceptionsContents := []byte(`package spdxlicenses
5353
54+
// Code generated by go-spdx cmd/exceptions.go. DO NOT EDIT.
55+
// Source: https://github.com/spdx/license-list-data specifies official SPDX license list.
56+
57+
// GetExceptions returns a slice of exception license IDs.
5458
func GetExceptions() []string {
5559
return []string{
5660
`)

cmd/license.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,10 @@ func extractLicenseIDs() error {
5656
// generate the GetLicenses() function in get_licenses.go
5757
getLicensesContents := []byte(`package spdxlicenses
5858
59+
// Code generated by go-spdx cmd/license.go. DO NOT EDIT.
60+
// Source: https://github.com/spdx/license-list-data specifies official SPDX license list.
61+
62+
// GetLicenses returns a slice of active license IDs.
5963
func GetLicenses() []string {
6064
return []string{
6165
`)
@@ -76,6 +80,10 @@ func GetLicenses() []string {
7680
// generate the GetDeprecated() function in get_deprecated.go
7781
getDeprecatedContents := []byte(`package spdxlicenses
7882
83+
// Code generated by go-spdx cmd/license.go. DO NOT EDIT.
84+
// Source: https://github.com/spdx/license-list-data specifies official SPDX license list.
85+
86+
// GetDeprecated returns a slice of deprecated license IDs.
7987
func GetDeprecated() []string {
8088
return []string{
8189
`)

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/github/go-spdx/v2
22

3-
go 1.18
3+
go 1.22
44

55
require github.com/stretchr/testify v1.8.0
66

spdxexp/spdxlicenses/doc.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/*
2+
Spdxlicenses package provides functions to get licenses, deprecated licenses, and exceptions. These are auto-generated and should not be modified directly.
3+
Licenses are generated from the [SPDX official machine readable license list].
4+
5+
In addition, this package includes a function to return license ranges for sequential licenses and ranges including modifiers (i.e. -only, -or-later).
6+
7+
[SPDX official machine readable license list]: https://github.com/spdx/license-list-data
8+
*/
9+
package spdxlicenses

spdxexp/spdxlicenses/get_deprecated.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spdxexp/spdxlicenses/get_exceptions.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

spdxexp/spdxlicenses/get_licenses.go

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)