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

Exclude num_no_build from versions.csv db-dump #9786

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

dtolnay
Copy link
Member

@dtolnay dtolnay commented Oct 29, 2024

In versions.csv, the num_no_build column is identical to num but without build metadata. So if num="1.0.0+example" then num_no_build="1.0.0".

It exists in the database only for the purpose of defining a unique constraint on (crate_id, num_no_build). See #9756.

But there is no reason to include it in db-dump.tar.gz because in downstream code it's trivial to reconstruct from the value of num if needed.

Copy link

codecov bot commented Oct 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.83%. Comparing base (743ad44) to head (6787812).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #9786   +/-   ##
=======================================
  Coverage   88.83%   88.83%           
=======================================
  Files         289      289           
  Lines       29854    29854           
=======================================
  Hits        26521    26521           
  Misses       3333     3333           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@Turbo87 Turbo87 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems reasonable, thanks for the PR :)

@Turbo87 Turbo87 merged commit b975538 into rust-lang:main Oct 29, 2024
10 checks passed
@dtolnay dtolnay deleted the num_no_build branch October 29, 2024 10:18
Turbo87 added a commit to Turbo87/crates.io that referenced this pull request Nov 29, 2024
Turbo87 added a commit that referenced this pull request Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants