choosealicense.com icon indicating copy to clipboard operation
choosealicense.com copied to clipboard

`source:` isn't a consistent source of truth

Open mlinksva opened this issue 7 years ago • 2 comments

As noted in #462 our license texts don't all match precisely the texts their source: fields point to. I'd like to fix that eventually, probably by treating license texts curated by SPDX as canonical.

mlinksva avatar Oct 29 '16 19:10 mlinksva

Implementation needs tests. Would detect and help us avoid issues such as #310 #486 #488

If we can manage to use SPDX as the canonical source of license texts, then we don't need the source field at all, as SPDX URLs can be constructed from spdx-id.

mlinksva avatar Mar 04 '17 18:03 mlinksva

If we can manage to use SPDX as the canonical source of license texts, then we don't need the source field at all, as SPDX URLs can be constructed from spdx-id.

See https://github.com/github/choosealicense.com/pull/489. I wrote a quick script to vendor in the license text from the SPDX API. The biggest change is the lack of line wrapping (doesn't affect the site or Licensee), and we'll need to normalize the merge fields, if we wanted to go that route.

benbalter avatar Mar 05 '17 22:03 benbalter