-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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(package): Ensure we can package directories ending with '.rs' #15240
Conversation
This might have also broken dependencies whose path ends with `.rs` as well This broke in rust-lang#14961
Should we do a beta backport? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
If we want to be extra cautious, yes, though I cannot find a way to break any stable features. |
Confirmed: this is visible with stable behavior. $ cargo new foo --lib
$ mv foo foo.rs
$ cargo add --path foo.rs
$ cargo check
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.03s
$ cargo +nightly check
error: failed to get `foo` as a dependency of package `cargo-15240 v0.1.0 (/home/epage/src/personal/dump/cargo-15240)`
Caused by:
failed to load source for dependency `foo`
Caused by:
Unable to update /home/epage/src/personal/dump/cargo-15240/foo.rs
Caused by:
Single file packages cannot be used as dependencies
$ nargo check
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.02s |
…st-lang#15240) ### What does this PR try to resolve? This likely only affects `-Zpackage-workspace` but it might have also broken dependencies whose path ends with `.rs` as well This broke in rust-lang#14961 ### How should we test and review this PR? ### Additional information
Beta backport submitted: #15248 |
Beta backports * #15240 In order to make CI pass, the following PRs are also cherry-picked: *
What does this PR try to resolve?
This likely only affects
-Zpackage-workspace
but it might have also broken dependencies whose path ends with.rs
aswell
This broke in #14961
How should we test and review this PR?
Additional information