Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prep for release 2.3.0 #79

Merged
merged 4 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.