This adds an spdxlicense.Index autogenerated from the https://spdx.org/licenses/licenses.json endpoint. Grant uses similar code to do this that syft does. The exceptions are as follows:
The index is generated with all key as strings.ToLower which allows case insensitive matching on incoming licenses
The index is more complex and allows users to see the official references, details, and follow up links for users of the program to explore.
The license index captures if an incoming license has the following qualities:
This adds an
spdxlicense.Index
autogenerated from thehttps://spdx.org/licenses/licenses.json
endpoint. Grant uses similar code to do this that syft does. The exceptions are as follows:key
asstrings.ToLower
which allows case insensitive matching on incoming licenses