Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update the SPDX license list #4031

Open
spencerschrock opened this issue Apr 15, 2024 · 1 comment
Open

update the SPDX license list #4031

spencerschrock opened this issue Apr 15, 2024 · 1 comment
Assignees
Labels
check/License good first issue Good for newcomers kind/enhancement New feature or request

Comments

@spencerschrock
Copy link
Contributor

As noticed in #3838 (comment) (which I'm noticing know is wrong because Beerware shouldn't be on out list in the sense of FSF or OSI approved), the SPDX list seems to have fallen out of date and could be refreshed. The list was added ~2 years ago (via #2442) and we're probably missing a few entries.

// (there's no magic here)
// created from the table at https://spdx.org/licenses
// 1) convert table to CSV and convert to json
// (inspired from inspired from https://stackoverflow.com/questions/17912307/u-ufeff-in-python-string)
//
// cat SPDX-license-IDs-202211131030CST.csv | \
// python -c \
// 'import csv, json, sys; print(json.dumps([dict(r) for r in csv.DictReader(sys.stdin)]))' | \
// sed 's/\\ufeff//g' > SPDX-license-IDs-202211131030CST.json
//
// 2) convert json to go lang compatible map
//
// cat SPDX-license-IDs-202211131030CST.json | \
// jq -c '.[] | select((."FSF Free/Libre?"=="Y") or (."OSI Approved?"=="Y")) | \
// [."Identifier",."Full Name"]' | \
// sed 's/","/": \{ Name: "/;s/\["/"/;s/"\]/" },/' | \
// sed 's/[- ]only//g;s/[- ]or[- ]later//g' | \
// sort | \
// uniq
var fsfOsiApprovedLicenseMap = map[string]fsfOsiLicenseType{

@spencerschrock spencerschrock added kind/enhancement New feature or request good first issue Good for newcomers check/License labels Apr 15, 2024
@lelia
Copy link
Contributor

lelia commented Apr 15, 2024

I can work on this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
check/License good first issue Good for newcomers kind/enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

2 participants