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

cargo fails to download git package #13641

Open
gbutterfield opened this issue Mar 25, 2024 · 1 comment
Open

cargo fails to download git package #13641

gbutterfield opened this issue Mar 25, 2024 · 1 comment
Labels
A-git Area: anything dealing with git C-bug Category: bug S-needs-info Status: Needs more info, such as a reproduction or more background for a feature request.

Comments

@gbutterfield
Copy link

Problem

I was trying to build Meilisearch with AI support and ran into this error. The URL resolves, so not sure what the issue might be.

cargo build --release --features cuda
    Updating crates.io index
error: failed to download `candle-kernels v0.3.1 (https://github.com/huggingface/candle.git#f4fcf609)`

Caused by:
  unable to get packages from source

Caused by:
  failed to find candle-kernels v0.3.1 (https://github.com/huggingface/candle.git#f4fcf609) in path source
note: this is an unexpected cargo internal error
note: we would appreciate a bug report: https://github.com/rust-lang/cargo/issues/
note: cargo 1.76.0 (c84b36747 2024-01-18)

Steps

Download Meilisearch and follow build instructions (which are really simple).

Possible Solution(s)

If I was to guess, I wonder if the hashtag is causing the issue?

Notes

No response

Version

cargo 1.76.0 (c84b36747 2024-01-18)
release: 1.76.0
commit-hash: c84b367471a2db61d2c2c6aab605b14130b8a31b
commit-date: 2024-01-18
host: x86_64-unknown-linux-gnu
libgit2: 1.7.1 (sys:0.18.1 vendored)
libcurl: 8.5.0-DEV (sys:0.4.70+curl-8.5.0 vendored ssl:OpenSSL/1.1.1w)
ssl: OpenSSL 1.1.1w  11 Sep 2023
os: Pop!_OS 22.04 (jammy) [64-bit]
@gbutterfield gbutterfield added C-bug Category: bug S-triage Status: This issue is waiting on initial triage. labels Mar 25, 2024
@weihanglo
Copy link
Member

Thanks for the report. The hashtag is how Cargo represents and records a precise commit. It is not related to how GitHub handles URLS, so might not be related.

Haven't dug deeper, but it might be the package.exclude containing candle-kernels led to the issue.

@weihanglo weihanglo added A-git Area: anything dealing with git 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 Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-git Area: anything dealing with git 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