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

feat: Don't release packages without a version #744

Merged
merged 2 commits into from
Jan 10, 2024

Conversation

epage
Copy link
Collaborator

@epage epage commented Jan 10, 2024

As of Rust 1.75, Cargo.toml doesn't have to have a version field. When its missing, the package version is treated as 0.0.0 and it can't be published.

In support of that, we disallowing packages from being released when they lack a version. There is nothing to publish and no version to bump, so nothing that can be done.

For all other cases, we should work just fine because we read the version from cargo metadata which will be 0.0.0.

@epage epage merged commit 21af8ce into crate-ci:master Jan 10, 2024
13 checks passed
@epage epage deleted the versionless branch January 10, 2024 16:44
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

Successfully merging this pull request may close these issues.

1 participant