From 494d58bf2ced3f96442c5a6facfa6d9abb1c0318 Mon Sep 17 00:00:00 2001 From: "E. Lynette Rayle" Date: Mon, 17 Jun 2024 16:59:04 -0400 Subject: [PATCH] add notification of generated code --- cmd/exceptions.go | 4 ++++ cmd/license.go | 8 ++++++++ spdxexp/spdxlicenses/get_deprecated.go | 4 ++++ spdxexp/spdxlicenses/get_exceptions.go | 4 ++++ spdxexp/spdxlicenses/get_licenses.go | 4 ++++ 5 files changed, 24 insertions(+) diff --git a/cmd/exceptions.go b/cmd/exceptions.go index 04c93a4..749bf5d 100644 --- a/cmd/exceptions.go +++ b/cmd/exceptions.go @@ -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{ `) diff --git a/cmd/license.go b/cmd/license.go index ca15e40..c051189 100644 --- a/cmd/license.go +++ b/cmd/license.go @@ -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{ `) @@ -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{ `) diff --git a/spdxexp/spdxlicenses/get_deprecated.go b/spdxexp/spdxlicenses/get_deprecated.go index d0776a5..bef76dd 100644 --- a/spdxexp/spdxlicenses/get_deprecated.go +++ b/spdxexp/spdxlicenses/get_deprecated.go @@ -1,5 +1,9 @@ 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{ "AGPL-1.0", diff --git a/spdxexp/spdxlicenses/get_exceptions.go b/spdxexp/spdxlicenses/get_exceptions.go index 0532ce6..cc55f2c 100644 --- a/spdxexp/spdxlicenses/get_exceptions.go +++ b/spdxexp/spdxlicenses/get_exceptions.go @@ -1,5 +1,9 @@ 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{ "389-exception", diff --git a/spdxexp/spdxlicenses/get_licenses.go b/spdxexp/spdxlicenses/get_licenses.go index 1f402ab..6675879 100644 --- a/spdxexp/spdxlicenses/get_licenses.go +++ b/spdxexp/spdxlicenses/get_licenses.go @@ -1,5 +1,9 @@ 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{ "0BSD",