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

[beta-1.81] fix(vendor): Strip excluded build targets #14368

Merged
merged 7 commits into from
Aug 7, 2024

Conversation

epage
Copy link
Contributor

@epage epage commented Aug 7, 2024

weihanglo and others added 7 commits August 7, 2024 16:32
Between rust-lang/rust#126810 and rust-lang/rust#126810 the output of rustc for resolution errors is going to change in such a way that some existing cargo tests will fail. Change them to support both the current and future output, so that those PRs can land in `rustc`.
Since we already cover this for `cargo package` and we turn all
implicit targets into explicit targets (making implicit tests cover
explicit cases), this becomes redundant.
This is a **very** hacky solution, duplicating the minimum of what
`prepare_for_publish` does to fix this one issue and in the least
intrusive way to the vendor code.

The intention is to keep this low risk for backporting to beta and
stable.
We need to revisit this, refactoring the `cargo package` code so that we
can call into that for each vendored dependency.

Fixes rust-lang#14348
@rustbot
Copy link
Collaborator

rustbot commented Aug 7, 2024

r? @ehuss

rustbot has assigned @ehuss.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot
Copy link
Collaborator

rustbot commented Aug 7, 2024

⚠️ Warning ⚠️

  • Pull requests are usually filed against the master branch for this repo, but this one is against rust-1.81.0. Please double check that you specified the right target!

@rustbot rustbot added A-manifest Area: Cargo.toml issues Command-vendor S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 7, 2024
@weihanglo
Copy link
Member

Thanks.

@bors r+

@bors
Copy link
Contributor

bors commented Aug 7, 2024

📌 Commit 78651cd has been approved by weihanglo

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 7, 2024
@bors
Copy link
Contributor

bors commented Aug 7, 2024

⌛ Testing commit 78651cd with merge f58aa3b...

@bors
Copy link
Contributor

bors commented Aug 7, 2024

☀️ Test successful - checks-actions
Approved by: weihanglo
Pushing f58aa3b to rust-1.81.0...

@bors bors merged commit f58aa3b into rust-lang:rust-1.81.0 Aug 7, 2024
22 checks passed
@epage epage deleted the beta-vendor branch August 8, 2024 00:49
bors added a commit that referenced this pull request Aug 14, 2024
[beta-1.81] Revert "fix: Ensure dep/feature activates the dependency on 2024"

Beta backports

* #14295

In order to make CI pass, the following PRs are also cherry-picked:

* #14352
* Ignore `build_std::{cross_custom,custom_test_framework,remap_path_scope}` tests (see also #14368)
bors added a commit to rust-lang-ci/rust that referenced this pull request Aug 21, 2024
…nglo

[beta-1.81] Update cargo

3 commits in ca2346bd3c7f51e82964aaf7e47cdf770047b6ab..2dbb1af80a2914475ba76827a312e29cedfa6b2f
2024-07-31 19:33:19 +0000 to 2024-08-20 18:24:58 +0000
- [beta-1.81] chore(deps): update rust crate gix to 0.64.0 (rust-lang/cargo#14431)
- [beta-1.81] Revert "fix: Ensure dep/feature activates the dependency on 2024" (rust-lang/cargo#14366)
- [beta-1.81] fix(vendor): Strip excluded build targets (rust-lang/cargo#14368)

r? ghost
@rustbot rustbot added this to the 1.81.0 milestone Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-manifest Area: Cargo.toml issues Command-vendor 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.

6 participants