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

fix(crates): Skip path-only dev-dependencies in dep cycle checking #341

Merged
merged 1 commit into from
Jan 14, 2022

Conversation

Swatinem
Copy link
Member

@Swatinem Swatinem commented Jan 14, 2022

See getsentry/sentry-rust#374 (comment)

The initial problem is that cargo validates (dev)-dependencies before publishing, and rejects that if the required version does not exist on crates.io yet. path-only dev-dependencies skip this check, and are thus not holding up publishing.

The previous method of using cargo-hack and the noDevDeps flag should be discouraged as it uses the --allow-dirty flag and thus prevents cargo from putting in more metadata that could be used for crate integrity validation (aka, the code in the crate matches a git commit; which it currently does not due to usage of cargo-hack)

Read https://codeandbitters.com/published-crate-analysis/ for more insight into why cargo-hack should be avoided.

@Swatinem Swatinem requested a review from jan-auer January 14, 2022 11:44
@Swatinem Swatinem merged commit 2ff325e into master Jan 14, 2022
@Swatinem Swatinem deleted the fix/crates-pathdeps branch January 14, 2022 16:23
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.

2 participants