Skip to content

Release v2.2.0

Compare
Choose a tag to compare
@ajhenry ajhenry released this 19 Sep 14:33
· 58 commits to main since this release
e0a077a

Overview

This is a minor update to add a new function ExtractLicenses to the API.

Required Actions for Updating

Run the following to update to this release.

go get github.com/github/go-spdx/[email protected]

Details

This function allows SPDX licenses to be extracted from any valid SPDX expression.

licenses, err := ExtractLicenses("(MIT AND APACHE-2.0) OR (APACHE-2.0)")
assert.Equal(licenses, []string{"MIT", "Apache-2.0"})

What's Changed

  • Add a new ExtractLicenses function for pulling out SPDX licenses (ajhenry)

Full Changelog: v2.1.2...v2.2.0