cargo fails to download git package

Open
#13,641 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
45/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
rust

Research direction

Reproduce the failure with cargo build --release --features cuda using the reported Cargo 1.76.0 environment, then trace Cargo's handling of the git dependency URL and candle-kernels package lookup. No source file or test is named in the report; done means identifying the cause, resolving the dependency correctly, and covering the failure with regression validation.

Written by the indexing model from the issue text.

Description

A-git C-bug S-needs-info
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]
Dominant language
Rust
Stars
15.5k
Forks
3k
Avg merge
23h 30m
Merged PRs (30d)
51

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rust-lang/cargo

All issues in rust-lang/cargo

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.