Skip to content

Commit

Permalink
Merge pull request #79 from github/elr/prep-2.3.0
Browse files Browse the repository at this point in the history
Prep for release 2.3.0
  • Loading branch information
elrayle authored Jun 17, 2024
2 parents 848f7ad + 0737660 commit ed138b1
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 2 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[![Go Reference](https://pkg.go.dev/badge/github.com/github/go-spdx/[email protected]/spdxexp.svg)](https://pkg.go.dev/github.com/github/go-spdx/[email protected]/spdxexp)
[![Go Reference](https://pkg.go.dev/badge/github.com/github/go-spdx/[email protected]/spdxexp.svg)](https://pkg.go.dev/github.com/github/go-spdx/[email protected]/spdxexp)
[![Go Reference](https://pkg.go.dev/badge/github.com/github/go-spdx/[email protected]/spdxlicenses.svg)](https://pkg.go.dev/github.com/github/go-spdx/[email protected]/spdxlicenses)

# go-spdx

Expand Down
4 changes: 4 additions & 0 deletions cmd/exceptions.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ func extractExceptionLicenseIDs() error {
// generate the GetExceptions() function in get_exceptions.go
getExceptionsContents := []byte(`package spdxlicenses
// Code generated by go-spdx cmd/exceptions.go. DO NOT EDIT.
// Source: https://github.com/spdx/license-list-data specifies official SPDX license list.
// GetExceptions returns a slice of exception license IDs.
func GetExceptions() []string {
return []string{
`)
Expand Down
8 changes: 8 additions & 0 deletions cmd/license.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ func extractLicenseIDs() error {
// generate the GetLicenses() function in get_licenses.go
getLicensesContents := []byte(`package spdxlicenses
// Code generated by go-spdx cmd/license.go. DO NOT EDIT.
// Source: https://github.com/spdx/license-list-data specifies official SPDX license list.
// GetLicenses returns a slice of active license IDs.
func GetLicenses() []string {
return []string{
`)
Expand All @@ -76,6 +80,10 @@ func GetLicenses() []string {
// generate the GetDeprecated() function in get_deprecated.go
getDeprecatedContents := []byte(`package spdxlicenses
// Code generated by go-spdx cmd/license.go. DO NOT EDIT.
// Source: https://github.com/spdx/license-list-data specifies official SPDX license list.
// GetDeprecated returns a slice of deprecated license IDs.
func GetDeprecated() []string {
return []string{
`)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/github/go-spdx/v2

go 1.18
go 1.22

require github.com/stretchr/testify v1.8.0

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

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions spdxexp/spdxlicenses/get_exceptions.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions spdxexp/spdxlicenses/get_licenses.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ed138b1

Please sign in to comment.