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

'GPL-3.0-only' has 'GPL-3.0-or-later' as an alias #45

Closed
phrohdoh opened this issue Aug 18, 2019 · 2 comments
Closed

'GPL-3.0-only' has 'GPL-3.0-or-later' as an alias #45

phrohdoh opened this issue Aug 18, 2019 · 2 comments

Comments

@phrohdoh
Copy link
Contributor

I ran askalono identify --optimize path/to/file.rs and got the following.

License: Unknown
Score: 0.221
Containing:
  License: GPL-3.0-only (license header)
  Score: 0.946
  Lines: 4 - 15
  Aliases: GPL-3.0-or-later

Using GPL-3.0-only is different from GPL-3.0-or-later, why are they aliases of each other?

Is this something askalono controls/determines or are aliases driven by SPDX data?

@jpeddicord
Copy link
Owner

These aliases are indeed driven by SPDX data.

Both of these have the same text, so askalono dedupes them into one. Previously it would return somewhat confusing results (you might get one or the other sometimes) so I chose to merge them and return both.

With headers in the mix things can get kind of complex. The stored header data in the SPDX repository sometimes has SPDX templates, and sometimes does not. Either way, askalono doesn't (yet?) know how to parse those. Open to suggestions.

@jpeddicord
Copy link
Owner

Closing this issue as this is specific to how SPDX data is represented, but I'm totally open to some solutions (clever or not) to help make this more clear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants