-
Notifications
You must be signed in to change notification settings - Fork 644
slog historical license information is incorrect #3714
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
Comments
thanks for reporting this @johnbatty. I can reproduce it, but it looks like it is a bug in the backend. I've just used https://crates.io/crates/cargo-download to I'll put it on the agenda for the team meeting tomorrow. |
Licenses used to be stored on a per-crate basis, then later we changed them to be stored per-version. If this crate's license change happened before we stored per-version licenses, it will be incorrect: we did not go through all old crate versions and untar each |
interesting, that certainly explains it. I'll keep it on the agenda for tomorrow to discuss whether such a retroactive fix might be useful. |
@carols10cents Thanks for the explanation - makes sense. This is not a big issue for me - I just noticed it was wrong and wanted to flag the fact in case there was a more serious bug in crates.io. I'd guess there aren't many crates that changed their licensing pre-2017, and probably even fewer people who look up old license versions via crates.io! |
It looks like #787 is the PR that introduced this, so all the versions that were created before this PR was merged are potentially affected. Since the PR is from 2017 I guess that means it's not actually all that many versions and it might be possible to fix it 🤔 |
I ran some analysis on the database dump and the tarballs and we have 6481 affected versions: https://gist.github.com/Turbo87/3a6d47a761a9c3ff2541987c0f624f3b |
Summary from the team meeting today:
|
the SQL script ran to completion and the issue should now be fixed. https://crates.io/crates/slog/versions shows only |
@Turbo87 Great work! Thanks very much for making this fix happen! |
Describe the bug
In the crate versions view, each version is displayed with the license of that version.
When looking at the
slog
crate where I know the licensing changed, the displayed licenses do not match the older crate license declarations.To Reproduce
Steps to reproduce the behavior:
slog
(0.6.0) was released under theMPL-2.0
license:slog
version 2.0.5 the license declaration changed toMPL-2.0/MPL/Apache-2.0
:slog
version list atcrates.io
, and observe that the versions prior to 2.0.5 are incorrectly shown with a license ofMPL-2.0 OR MIT/Apache-2.0
, rather than the expectedMPL-2.0
.Expected behavior
slog
versions prior to 2.0.5 should be shown with a license of justMPL-2.0
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: