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

Index at github.com-1ecc6299db9ec823 isn't updated #12523

Closed
missingdays opened this issue Aug 18, 2023 · 3 comments
Closed

Index at github.com-1ecc6299db9ec823 isn't updated #12523

missingdays opened this issue Aug 18, 2023 · 3 comments
Labels
C-bug Category: bug S-needs-info Status: Needs more info, such as a reproduction or more background for a feature request.

Comments

@missingdays
Copy link

Problem

When updating the index, only index.crates.io-6f17d22bba15001f index is updated, but not github.com-1ecc6299db9ec823.

Steps

  1. Run any command that should update the index (e.g. cargo update --dry-run )
  2. Check that index.crates.io-6f17d22bba15001f index is updated
  3. Check that github.com-1ecc6299db9ec823 index isn't updated

Possible Solution(s)

No response

Notes

No response

Version

cargo 1.70.0 (ec8a8a0ca 2023-04-25)
release: 1.70.0
commit-hash: ec8a8a0cabb0e0cadef58902470f6c7ee7868bdc
commit-date: 2023-04-25
host: x86_64-pc-windows-msvc
libgit2: 1.6.3 (sys:0.17.0 vendored)
libcurl: 8.0.1-DEV (sys:0.4.61+curl-8.0.1 vendored ssl:Schannel)
os: Windows 10.0.19045 (Windows 10 Home Single Language) [64-bit]
@missingdays missingdays added C-bug Category: bug S-triage Status: This issue is waiting on initial triage. labels Aug 18, 2023
@weihanglo
Copy link
Member

This is expected and exactly the purpose sparse registry index was designed for — skipping the update of Git-based registry index. Cargo updates only the registry index for the default protocol of your choice. By default it is the sparse protocol since 1.68.

Is there any issue you encountered with this behavior?

@weihanglo weihanglo added S-needs-info Status: Needs more info, such as a reproduction or more background for a feature request. and removed S-triage Status: This issue is waiting on initial triage. labels Aug 18, 2023
@missingdays
Copy link
Author

@weihanglo thank you for your answer
As discussed in #3377, this index is used in various tools (intellij-rust in my case) to gather information about the crates. I've noticed that the github index stopped updating, and it was causing problems for us, for example intellij-rust/intellij-rust#10644
I'll try setting the github index as default one, thank you!

@weihanglo
Copy link
Member

I am not sure what it wasn't reported earlier, since sparse registry was in beta for a long while, and got stabilized in March this year. For intellij-rust perhaps some bugs were introduced in recent.

Anyway, here is a workaround to forced update the Git-based registry index: CARGO_REGISTRIES_CRATES_IO_PROTOCOL=git cargo fetch

Closing in favor of other prior issues:

Thank you for the report!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: bug S-needs-info Status: Needs more info, such as a reproduction or more background for a feature request.
Projects
None yet
Development

No branches or pull requests

2 participants