Skip to content

mirage: Untangle crate.id and crate.name #3698

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

Merged
merged 1 commit into from
Jun 14, 2021
Merged

Conversation

Turbo87
Copy link
Member

@Turbo87 Turbo87 commented Jun 12, 2021

The id is rarely used and exposed on the API, but there are a few cases where it is indeed used. The id is meant to be a i32 though, so having it equal to the name of the crate was wrong. This PR fixes the issue by having the id as a regular numeric ID and using name everywhere else.

This PR is a prerequisite for implementing crate-owner-invitation support into our mirage setup.

The `id` is rarely used and exposed on the API, but there are a few cases where it is indeed used. The `id` is meant to be a `i32` though, so having it equal to the `name` of the crate was wrong. This commit fixes the issue by having the `id` as a regular numeric ID and using `name` everywhere else.
@Turbo87 Turbo87 added A-frontend 🐹 C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear labels Jun 12, 2021
@locks
Copy link
Contributor

locks commented Jun 14, 2021

@bors r+

@bors
Copy link
Contributor

bors commented Jun 14, 2021

📌 Commit 040bc68 has been approved by locks

@bors
Copy link
Contributor

bors commented Jun 14, 2021

⌛ Testing commit 040bc68 with merge ef58484...

@bors
Copy link
Contributor

bors commented Jun 14, 2021

☀️ Test successful - checks-actions
Approved by: locks
Pushing ef58484 to master...

@bors bors merged commit ef58484 into rust-lang:master Jun 14, 2021
@Turbo87 Turbo87 deleted the crate-id branch June 16, 2021 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-frontend 🐹 C-internal 🔧 Category: Nonessential work that would make the codebase more consistent or clear
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants