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

can't run upgrade in windows #902

Open
haohanyuzmx opened this issue Aug 17, 2024 · 8 comments
Open

can't run upgrade in windows #902

haohanyuzmx opened this issue Aug 17, 2024 · 8 comments

Comments

@haohanyuzmx
Copy link

image

when use cargo upgrade,there is no any respond

@epage
Copy link
Collaborator

epage commented Aug 19, 2024

With Cargo 1.80.1, I just ran cargo install cargo-edit && cargo upgrade -h and it showed help output.

Any further steps for reproduction for this?

@haohanyuzmx
Copy link
Author

It is not convenient for me to experiment now. It will take about 8 hours before I can experiment.
If possible, can you provide some additional information to help me troubleshoot? Currently, no matter what I run, there is no output.
The solution I can think of is to clone this code to local and add log

@haohanyuzmx
Copy link
Author

I clone this repo, and run cargo run --bin cargo-upgrade upgrad, get lots of warning, and respond Error: The repo at path D:\code\rust\.cargo\registry\index\github.com-1ecc6299db9ec823 is unusable due to having an invalid HEAD reference: reference 'refs/heads/master' not found; class=Reference (4); code=NotFound (-3)

Is this something else i can do to provide more infomation

the full output is

cargo run --bin cargo-upgrade upgrade
warning: skipping duplicate package `bar` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\crates\cargo-test-support\containers\sshd\bar`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\change_rename_target\in`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\deprecated_default_features\in`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\deprecated_section\in`
warning: skipping duplicate package `foo` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\detect_workspace_inherit_features\in\dependency`
warning: skipping duplicate package `bar` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\detect_workspace_inherit_features\in\primary`
warning: skipping duplicate package `foo` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\detect_workspace_inherit_optional\in\dependency`
warning: skipping duplicate package `bar` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\detect_workspace_inherit_optional\in\primary`
warning: skipping duplicate package `cargo-list-test-fixture-dependency` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\dev_prefer_existing_version\in\dependency`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\features_preserve\in`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\git_registry\in`
warning: skipping duplicate package `foo` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\invalid_key_inherit_dependency\in\dependency`
warning: skipping duplicate package `bar` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\invalid_key_inherit_dependency\in\primary`
warning: skipping duplicate package `foo` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\invalid_key_overwrite_inherit_dependency\in\dependency`
warning: skipping duplicate package `bar` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\invalid_key_overwrite_inherit_dependency\in\primary`
warning: skipping duplicate package `foo` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\invalid_key_rename_inherit_dependency\in\dependency`
warning: skipping duplicate package `bar` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\invalid_key_rename_inherit_dependency\in\primary`
error: invalid string
expected `"`, `'`
 --> ..\..\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\invalid_manifest\out\Cargo.toml:8:7
  |
8 | key = invalid-value
  |       ^
  |
warning: skipping duplicate package `cargo-list-test-fixture-dependency` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\invalid_path_name\in\dependency`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\invalid_path_name\in\primary`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\list_features_path\in\primary`
warning: skipping duplicate package `your-face` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\list_features_path_no_default\in\dependency`
warning: skipping duplicate package `optional-dependency` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\list_features_path_no_default\in\optional`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\list_features_path_no_default\in\primary`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\locked_unchanged\in`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\lockfile_updated\in`
warning: skipping duplicate package `cargo-list-test-fixture-dependency` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\manifest_path_package\in\dependency`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\manifest_path_package\in\primary`
warning: skipping duplicate package `foo` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\merge_activated_features\in\dependency`
warning: skipping duplicate package `bar` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\merge_activated_features\in\primary`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_default_features\in`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_default_features_with_no_default_features\in`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_features\in`
warning: skipping duplicate package `cargo-list-test-fixture-dependency` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_git_with_path\in\dependency`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_git_with_path\in\primary`
warning: skipping duplicate package `foo` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_inherit_features_noop\in\dependency`
warning: skipping duplicate package `bar` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_inherit_features_noop\in\primary`
warning: skipping duplicate package `foo` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_inherit_noop\in\dependency`
warning: skipping duplicate package `bar` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_inherit_noop\in\primary`
warning: skipping duplicate package `foo` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_inherit_optional_noop\in\dependency`
warning: skipping duplicate package `bar` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_inherit_optional_noop\in\primary`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_inline_features\in`
warning: skipping duplicate package `your-face` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_name_noop\in\dependency`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_no_default_features\in`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_no_default_features_with_default_features\in`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_no_optional\in`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_no_optional_with_optional\in`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_optional\in`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_optional_with_no_optional\in`
warning: skipping duplicate package `your-face` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_path_noop\in\dependency`
warning: skipping duplicate package `cargo-list-test-fixture-dependency` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_path_with_version\in\dependency`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_path_with_version\in\primary`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_preserves_inline_table\in`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_rename_with_no_rename\in`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_rename_with_rename\in`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_rename_with_rename_noop\in`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_version_with_git\in`
warning: skipping duplicate package `cargo-list-test-fixture-dependency` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_version_with_path\in\dependency`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_version_with_path\in\primary`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_with_rename\in`
warning: skipping duplicate package `foo` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_workspace_dep\in\dependency`
warning: skipping duplicate package `bar` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_workspace_dep\in\primary`
warning: skipping duplicate package `foo` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_workspace_dep_features\in\dependency`
warning: skipping duplicate package `bar` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\overwrite_workspace_dep_features\in\primary`
warning: skipping duplicate package `cargo-list-test-fixture-dependency` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\path\in\dependency`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\path\in\primary`
warning: skipping duplicate package `cargo-list-test-fixture-dependency` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\path_dev\in\dependency`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\path_dev\in\primary`
warning: skipping duplicate package `cargo-list-test-fixture-dependency` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\path_inferred_name\in\dependency`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\path_inferred_name\in\primary`
warning: skipping duplicate package `your-face` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\path_inferred_name_conflicts_full_feature\in\dependency`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\path_inferred_name_conflicts_full_feature\in\primary`
warning: skipping duplicate package `cargo-list-test-fixture-dependency` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\path_normalized_name\in\dependency`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\path_normalized_name\in\primary`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\preserve_sorted\in`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\preserve_unsorted\in`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\registry\in`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\require_weak\in`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\rust_version_ignore\in`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\rust_version_ignore\out`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\rust_version_incompatible\in`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\rust_version_incompatible\out`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\rust_version_latest\in`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\rust_version_latest\out`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\rust_version_older\in`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\rust_version_older\out`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\sorted_table_with_dotted_item\in`
warning: skipping duplicate package `foo` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\unknown_inherited_feature\in\dependency`
warning: skipping duplicate package `bar` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\unknown_inherited_feature\in\primary`
warning: skipping duplicate package `cargo-list-test-fixture-dependency` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\workspace_name\in\dependency`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\workspace_name\in\primary`
warning: skipping duplicate package `cargo-list-test-fixture-dependency` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\workspace_path\in\dependency`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\workspace_path\in\primary`
warning: skipping duplicate package `cargo-list-test-fixture-dependency` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\workspace_path_dev\in\dependency`
warning: skipping duplicate package `cargo-list-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_add\workspace_path_dev\in\primary`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\bin_already_exists_explicit\out`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\bin_already_exists_explicit_nosrc\out`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\bin_already_exists_implicit\out`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\bin_already_exists_implicit_namenosrc\out`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\bin_already_exists_implicit_namesrc\out`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\bin_already_exists_implicit_nosrc\out`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\creates_binary_when_both_binlib_present\out`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\creates_binary_when_instructed_and_has_lib_file\out`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\creates_library_when_instructed_and_has_bin_file\out`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\explicit_bin_with_git\out`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\formats_source\out`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\fossil_autodetect\out`
warning: skipping duplicate package `foo` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\git_autodetect\out`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\git_ignore_exists_no_conflicting_entries\out`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\ignores_failure_to_format_source\out`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\inferred_bin_with_git\out`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\inferred_lib_with_git\out`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\lib_already_exists_nosrc\out`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\lib_already_exists_src\out`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\mercurial_autodetect\out`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\pijul_autodetect\out`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\simple_bin\out`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\simple_git\out`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\simple_git_ignore_exists\out`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\simple_hg\out`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\simple_hg_ignore_exists\out`
warning: skipping duplicate package `case` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\simple_lib\out`
warning: skipping duplicate package `foo` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_init\with_argument\out\foo`
warning: skipping duplicate package `foo` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_new\inherit_workspace_lints\out\crates\foo`
warning: skipping duplicate package `cargo-remove-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\build\out`
warning: skipping duplicate package `cargo-remove-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\dev\out`
warning: skipping duplicate package `cargo-remove-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\dry_run\out`
warning: skipping duplicate package `serde` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\gc_keep_used_patch\out\serde`
warning: skipping duplicate package `serde_derive` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\gc_keep_used_patch\out\serde_derive`
warning: skipping duplicate package `cargo-remove-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\gc_profile\in`
warning: skipping duplicate package `cargo-remove-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\gc_profile\out`
warning: skipping duplicate package `my-package` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\gc_replace\out\my-package`
warning: skipping duplicate package `cargo-remove-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\invalid_arg\out`
warning: skipping duplicate package `cargo-remove-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\invalid_dep\out`
warning: skipping duplicate package `dep-a` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\invalid_package_multiple\out\dep-a`
warning: skipping duplicate package `dep-b` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\invalid_package_multiple\out\dep-b`
warning: skipping duplicate package `cargo-remove-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\invalid_section\out`
warning: skipping duplicate package `cargo-remove-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\invalid_section_dep\out`
warning: skipping duplicate package `cargo-remove-target-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\invalid_target_dep\out`
warning: skipping duplicate package `cargo-remove-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\multiple_deps\out`
warning: skipping duplicate package `cargo-remove-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\multiple_dev\out`
warning: skipping duplicate package `cargo-remove-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\no_arg\out`
warning: skipping duplicate package `cargo-remove-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\offline\out`
warning: skipping duplicate package `cargo-remove-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\optional_dep_feature\out`
warning: skipping duplicate package `cargo-remove-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\optional_feature\out`
warning: skipping duplicate package `dep-a` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\package\out\dep-a`
warning: skipping duplicate package `dep-b` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\package\out\dep-b`
warning: skipping duplicate package `cargo-remove-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\remove-basic.in`
warning: skipping duplicate package `dep-a` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\remove-package.in\dep-a`
warning: skipping duplicate package `dep-b` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\remove-package.in\dep-b`
warning: skipping duplicate package `cargo-remove-target-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\remove-target.in`
warning: skipping duplicate package `cargo-remove-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\remove_basic\out`
warning: skipping duplicate package `cargo-remove-target-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\target\out`
warning: skipping duplicate package `cargo-remove-target-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\target_build\out`
warning: skipping duplicate package `cargo-remove-target-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\target_dev\out`
warning: skipping duplicate package `cargo-remove-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\update_lock_file\in`
warning: skipping duplicate package `cargo-remove-test-fixture` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\update_lock_file\out`
warning: skipping duplicate package `my-package` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\workspace\in\my-package`
warning: skipping duplicate package `my-package` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\workspace\out\my-package`
warning: skipping duplicate package `my-package` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\workspace_non_virtual\in`
warning: skipping duplicate package `my-package` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\workspace_non_virtual\out`
warning: skipping duplicate package `my-member` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\workspace_non_virtual\out\my-member`
warning: skipping duplicate package `my-package` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\workspace_preserved\in\my-package`
warning: skipping duplicate package `my-other-package` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\workspace_preserved\out\my-other-package`
warning: skipping duplicate package `my-package` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_remove\workspace_preserved\out\my-package`
warning: skipping duplicate package `foo` found at `D:\code\rust\.cargo\git\checkouts\cargo-e7ff1db891893a9e\2a6f7f6\tests\testsuite\cargo_test\no_keep_going\in`
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.80s
     Running `target\debug\cargo-upgrade.exe upgrade`
Error: The repo at path D:\code\rust\.cargo\registry\index\github.com-1ecc6299db9ec823 is unusable due to having an invalid HEAD reference: reference 'refs/heads/master' not found; class=Reference (4); code=NotFound (-3)
error: process didn't exit successfully: `target\debug\cargo-upgrade.exe upgrade` (exit code: 1)

@haohanyuzmx
Copy link
Author

It seems that there is already a similar issue #865

@epage
Copy link
Collaborator

epage commented Aug 20, 2024

That is #879. This issue is about cargo upgrade --help not showing anything but running the command directly did show things.

Could you post ~/.cargo/.crates2.json?

Have you tried re-installing?

@haohanyuzmx
Copy link
Author

haohanyuzmx commented Aug 21, 2024

Sorry, I went to bed yesterday and didn't see the message; I need to give the file in about 8 hours

I have tried re-install and it seems i have changed the file directly before

@haohanyuzmx
Copy link
Author

haohanyuzmx commented Aug 21, 2024

I'm sorry for forget this thing,follow is the crates2.json file

{
  "installs": {
    "cargo-edit 0.12.3 (registry+https://github.com/rust-lang/crates.io-index)": {
      "version_req": null,
      "bins": [
        "cargo-add.exe",
        "cargo-rm.exe",
        "cargo-set-version.exe",
        "cargo-upgrade.exe"
      ],
      "features": [],
      "all_features": false,
      "no_default_features": false,
      "profile": "release",
      "target": "x86_64-pc-windows-msvc",
      "rustc": "rustc 1.79.0 (129f3b996 2024-06-10)\nbinary: rustc\ncommit-hash: 129f3b9964af4d4a709d1383930ade12dfe7c081\ncommit-date: 2024-06-10\nhost: x86_64-pc-windows-msvc\nrelease: 1.79.0\nLLVM version: 18.1.7\n"
    },
    "cargo-expand 1.0.89 (registry+https://github.com/rust-lang/crates.io-index)": {
      "version_req": null,
      "bins": [
        "cargo-expand.exe"
      ],
      "features": [],
      "all_features": false,
      "no_default_features": false,
      "profile": "release",
      "target": "x86_64-pc-windows-msvc",
      "rustc": "rustc 1.80.1 (3f5fd8dd4 2024-08-06)\nbinary: rustc\ncommit-hash: 3f5fd8dd41153bc5fdca9427e9e05be2c767ba23\ncommit-date: 2024-08-06\nhost: x86_64-pc-windows-msvc\nrelease: 1.80.1\nLLVM version: 18.1.7\n"
    },
    "cargo-generate 0.18.4 (registry+https://github.com/rust-lang/crates.io-index)": {
      "version_req": null,
      "bins": [
        "cargo-generate.exe"
      ],
      "features": [],
      "all_features": false,
      "no_default_features": false,
      "profile": "release",
      "target": "x86_64-pc-windows-msvc",
      "rustc": "rustc 1.72.0 (5680fa18f 2023-08-23)\nbinary: rustc\ncommit-hash: 5680fa18feaa87f3ff04063800aec256c3d4b4be\ncommit-date: 2023-08-23\nhost: x86_64-pc-windows-msvc\nrelease: 1.72.0\nLLVM version: 16.0.5\n"
    },
    "cargo-update 14.0.2 (registry+https://github.com/rust-lang/crates.io-index)": {
      "version_req": null,
      "bins": [
        "cargo-install-update-config.exe",
        "cargo-install-update.exe"
      ],
      "features": [],
      "all_features": false,
      "no_default_features": false,
      "profile": "release",
      "target": "x86_64-pc-windows-msvc",
      "rustc": "rustc 1.80.1 (3f5fd8dd4 2024-08-06)\nbinary: rustc\ncommit-hash: 3f5fd8dd41153bc5fdca9427e9e05be2c767ba23\ncommit-date: 2024-08-06\nhost: x86_64-pc-windows-msvc\nrelease: 1.80.1\nLLVM version: 18.1.7\n"
    }
  }
}

@epage
Copy link
Collaborator

epage commented Aug 21, 2024

Nothing suspicious in there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants