nabijaczleweli / cargo-update

A cargo subcommand for checking and applying updates to installed executables
MIT License
1.22k stars 42 forks source link

Unable to list/update packages after installing package using cargo binstall --git #261

Closed fnuttens closed 3 months ago

fnuttens commented 3 months ago

After installing markdown-oxide this way:

cargo binstall --git 'https://github.com/feel-ix-343/markdown-oxide' markdown-oxide

I get the following error:

$ cargo install-update -l
    Polling registry 'https://index.crates.io/'.................
Failed to update index repository crates-io: package markdown-oxide doesn't exist: HTTP 404.

What am I missing?

nabijaczleweli commented 3 months ago

What does ~/.cargo/.crates.toml say?

fnuttens commented 3 months ago

@nabijaczleweli I didn’t realize there were hidden files here ^^'

[v1]
# …
"markdown-oxide 0.23.1 (registry+https://github.com/rust-lang/crates.io-index)" = ["markdown-oxide"]

I guess I have to change this to (git+https://github.com/feel-ix-343/markdown-oxide) or something?

nabijaczleweli commented 3 months ago

In your particular case: yes, unfortunately

But in the general case: @NobodyXu needs to fix cargo-binstall to write the correct metadata to .crates.toml

NobodyXu commented 3 months ago

Thanks, I've opened an issue in cargo-binstall, would fix it soon.

nabijaczleweli commented 3 months ago

Closing as external (https://github.com/cargo-bins/cargo-binstall/issues/1815)