Skip to content

v2.1.0

Compare
Choose a tag to compare
@elrayle elrayle released this 17 Jan 14:42
· 91 commits to main since this release
9f1f925

Overview

The list of active, deprecated, and exception licenses have been updated to the latest based on the official list from the spdx specification.

Part of this release is the addition of a utility that extracts just the IDs from the full json record for each license.

Required Actions for Upgrading

Run the following to update to this release.

go get github.com/github/go-spdx/v2@v2.1.0

Details

License ID Extraction Utility

Extracts license, deprecation, and exception ids from the official spdx license list data.
The source data needs to be manually updated by copying the licenses.json file from
https://github.com/spdx/license-list-data/blob/main/json/licenses.json and exceptions.json
file from https://github.com/spdx/license-list-data/blob/main/json/exceptions.json.

After running the extract command, the license_ids.json, deprecated_ids.json, and exception_ids.json
files will be overwritten with the extracted ids. These license ids can then be used to update the
spdxexp/license.go file.

Command to run all extractions (run command from the /cmd directory):

go run . extract -l -e

Usage options:

-h: prints this help message
-l: Extract license ids
-e: Extract exception ids

What's Changed

  • update license lists from official spdx data #35 (elrayle)
  • add documentation for license extraction utility #34 (elrayle)