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: cargo package failed on bare commit git repo. #14374

Closed
wants to merge 3 commits into from

Conversation

weihanglo
Copy link
Member

@weihanglo weihanglo commented Aug 9, 2024

Beta backports

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

Fix: `cargo package` failed on bare commit git repo.

### What does this PR try to resolve?
Fixes rust-lang#14354

This approach chose to not generate a `.cargo_vcs_info.json` for bare commit git repo.

### How should we test and review this PR?
Compare the test changes before and after the two commits

### Additional information
@rustbot
Copy link
Collaborator

rustbot commented Aug 9, 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 9, 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 Command-package S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 9, 2024
@epage
Copy link
Contributor

epage commented Aug 14, 2024

Whats the reason for backporting this? Empty git repos seems like a pretty rare use case.

@weihanglo
Copy link
Member Author

Whats the reason for backporting this? Empty git repos seems like a pretty rare use case.

True but

  • Still a regression. We don't know if there is an automation relying on cargo new–adding stuff–cargo package combos.
  • This is a relatively simple backport.

Fine with not backporting it. Whoever does this should find any workaround easily (like making a git commit). Closing.

@weihanglo weihanglo closed this Aug 14, 2024
@weihanglo weihanglo deleted the beta-backport branch August 14, 2024 16:07
@Turbo87
Copy link
Member

Turbo87 commented Sep 6, 2024

FWIW not backporting this has broken the crates.io smoke test setup (https://github.com/rust-lang/crates.io/blob/main/crates/crates_io_smoke_test/). we're basically doing the same "steps" as in #14354 (comment) leading to the "revspec 'HEAD' not found" error :-/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Command-package S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants