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

Only override published resolver when the workspace is different #10961

Merged
merged 2 commits into from
Aug 10, 2022

Conversation

Nemo157
Copy link
Member

@Nemo157 Nemo157 commented Aug 9, 2022

What does this PR try to resolve?

Ensures when publishing a package that uses an implicit resolver = "1" to maintain an MSRV before the resolver key was stabilized the implicitness is retained rather than being turned into an explicit setting.

fixes #10954 (assuming that the workspace and its packages are configured with a consistent resolver)

@rust-highfive
Copy link

r? @ehuss

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 9, 2022
Copy link
Contributor

@epage epage left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pulling this out!

The nit is not a blocker. I mostly included it for consideration for future PRs. I had considered having it pulled out to minimize risk as this will be backported to beta but I figured having it instead helped reduce risk as it ensures both code paths are aligned.

src/cargo/util/toml/mod.rs Outdated Show resolved Hide resolved
src/cargo/core/workspace.rs Show resolved Hide resolved
@Nemo157 Nemo157 force-pushed the skip-implicit-override branch from 8b650bd to 8b0a3ff Compare August 9, 2022 20:07
@Nemo157 Nemo157 force-pushed the skip-implicit-override branch from 8b0a3ff to 492358a Compare August 10, 2022 07:27
@epage
Copy link
Contributor

epage commented Aug 10, 2022

@bors r+

@bors
Copy link
Contributor

bors commented Aug 10, 2022

📌 Commit 492358a has been approved by epage

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 10, 2022
@bors
Copy link
Contributor

bors commented Aug 10, 2022

⌛ Testing commit 492358a with merge 1fcbca8...

@bors
Copy link
Contributor

bors commented Aug 10, 2022

☀️ Test successful - checks-actions
Approved by: epage
Pushing 1fcbca8 to master...

@bors bors merged commit 1fcbca8 into rust-lang:master Aug 10, 2022
@Nemo157 Nemo157 deleted the skip-implicit-override branch August 10, 2022 15:19
@epage
Copy link
Contributor

epage commented Aug 10, 2022

@ehuss I'm assuming rust-1.64.0 is what I want to backport this fix to?

@ehuss
Copy link
Contributor

ehuss commented Aug 10, 2022

Yes, rust-1.64.0 is the correct branch, thanks!

bors added a commit that referenced this pull request Aug 11, 2022
[BETA 1.64] Only override published resolver when the workspace is different

### What does this PR try to resolve?

Ensures when publishing a package that uses an implicit `resolver = "1"` to maintain an MSRV before the `resolver` key was stabilized the implicitness is retained rather than being turned into an explicit setting.

fixes #10954 (assuming that the workspace and its packages are configured with a consistent resolver)

Note: this is a backport of #10961 to beta
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 12, 2022
Update cargo

8 commits in ce40690a5e4e315d3dab0aae1eae69d0252c52ac..efd4ca3dc0b89929dc8c5f5c023d25978d76cb61
2022-08-09 22:32:17 +0000 to 2022-08-12 01:28:28 +0000
- Use `std::thread::scope` to replace crossbeam (rust-lang/cargo#10977)
- [docs] Remove extra "in" from `cargo-test.md` (rust-lang/cargo#10978)
- Enable two windows tests (rust-lang/cargo#10930)
- Improve error msg for get target runner (rust-lang/cargo#10968)
- Ensure rustc-echo-wrapper works with an overridden build.target-dir (rust-lang/cargo#10962)
- Switch back to `available_parallelism` (rust-lang/cargo#10969)
- Only override published resolver when the workspace is different (rust-lang/cargo#10961)
- Add `CARGO_LOG` to "Environment variables Cargo reads" (rust-lang/cargo#10967)
@ehuss ehuss added this to the 1.64.0 milestone Aug 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Manifests with a resolver field will be published even if the MSRV is less than 1.51
5 participants