add notification of generated code

This commit is contained in:
E. Lynette Rayle 2024-06-17 16:59:04 -04:00
Родитель 848f7adb9a
Коммит 494d58bf2c
5 изменённых файлов: 24 добавлений и 0 удалений

Просмотреть файл

@ -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{
`)

Просмотреть файл

@ -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{
`)

Просмотреть файл

@ -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",

Просмотреть файл

@ -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",

Просмотреть файл

@ -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",