-
Notifications
You must be signed in to change notification settings - Fork 2.7k
fix(package): Allow packaging of self-cycles with -Zpackage-workspace #15626
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7560,6 +7560,40 @@ fn unpublished_cyclic_dev_dependencies() { | |
| ); | ||
| } | ||
|
|
||
| #[cargo_test] | ||
| fn unpublished_cyclic_dev_dependencies_nightly() { | ||
| registry::init(); | ||
| let p = project() | ||
| .file( | ||
| "Cargo.toml", | ||
| r#" | ||
| [package] | ||
| name = "foo" | ||
| version = "0.0.1" | ||
| edition = "2015" | ||
| authors = [] | ||
| license = "MIT" | ||
| description = "foo" | ||
| documentation = "foo" | ||
|
|
||
| [dev-dependencies] | ||
| foo = { path = ".", version = "0.0.1" } | ||
| "#, | ||
| ) | ||
| .file("src/lib.rs", "") | ||
| .build(); | ||
|
|
||
| p.cargo("package --no-verify --exclude-lockfile -Zpackage-workspace") | ||
| .masquerade_as_nightly_cargo(&["package-workspace"]) | ||
| .with_status(101) | ||
| .with_stderr_data(str![[r#" | ||
| [ERROR] crates-io is replaced with remote registry dummy-registry; | ||
|
||
| include `--registry dummy-registry` or `--registry crates-io` | ||
|
|
||
| "#]]) | ||
| .run(); | ||
| } | ||
|
|
||
| // A failing case from <https://github.com/rust-lang/cargo/issues/15059> | ||
| #[cargo_test] | ||
| fn unpublished_dependency() { | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.