nabijaczleweli / cargo-update

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

Package doesn't exist HTTP 404 #228

Closed Zephira58 closed 1 year ago

Zephira58 commented 1 year ago

Hey so I have this project that I've been working on. And I've installed it with cargo but now every time I try to run cargo install-update --all I get returned error 404. image

I'm not sure whos side the error is on. But if there's anything that could be done to resolve the issue please let me know.

-Info- Os: Windows 10 | Ubuntu 22.04 Error Code: HTTP 404 Effected Package: FileSorterX

nabijaczleweli commented 1 year ago

hm

P:\Rust\cargo-update>target\debug\cargo-install-update install-update -lai FileSorterX
    Polling registry 'https://index.crates.io/'.............
Failed to update index repository crates-io: package FileSorterX doesn't exist: HTTP 404.

P:\Rust\cargo-update>set CARGO_REGISTRIES_CRATES_IO_PROTOCOL=git

P:\Rust\cargo-update>target\debug\cargo-install-update install-update -lai FileSorterX
    Updating registry 'https://github.com/rust-lang/crates.io-index'

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "package FileSorterX not found"', src\ops\mod.rs:226:22
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

but

P:\Rust\cargo-update>cargo install FileSorterX
    Updating crates.io index
  Downloaded FileSorterX v1.2.0
  Downloaded 1 crate (18.1 KB) in 0.44s
  Installing FileSorterX v1.2.0
Zephira58 commented 1 year ago

Yeah I know I tried figuring it out myself for like 3 or so hours before I gave up. I have no clue what the issue is, do you think I should contact the crates support team?

nabijaczleweli commented 1 year ago

I don't think I've ever seen an upper-case crate name lol

D:\Users\nabijaczleweli\.cargo\registry\index\github.com-1ecc6299db9ec823>git grep FileSorterX FETCH_HEAD --
FETCH_HEAD:fi/le/filesorterx:{"name":"FileSorterX","vers":"1.0.0","deps":[{"name":"clap","req":"^4.1.13","features":["derive"],"optional":false,"default_features":true,"target":null,"kind":"normal"}],"cksum":"3de1bc8c6d85692dd593ab2349f40ea34e61d302e5ddde3b91d1d022b8629bc8","features":{},"yanked":false}
FETCH_HEAD:fi/le/filesorterx:{"name":"FileSorterX","vers":"1.1.0","deps":[{"name":"clap","req":"^4.1.13","features":["derive"],"optional":false,"default_features":true,"target":null,"kind":"normal"},{"name":"rand","req":"^0.8.5","features":[],"optional":false,"default_features":true,"target":null,"kind":"normal"},{"name":"self_update","req":"^0.36.0","features":[],"optional":false,"default_features":true,"target":null,"kind":"normal"}],"cksum":"380bccb78a33d7e9cd430a0be249428673b774059f437e0963c40f4eacabc1ca","features":{},"yanked":false}
FETCH_HEAD:fi/le/filesorterx:{"name":"FileSorterX","vers":"1.2.0","deps":[{"name":"clap","req":"^4.2.1","features":["derive"],"optional":false,"default_features":true,"target":null,"kind":"normal"},{"name":"rand","req":"^0.8.5","features":[],"optional":false,"default_features":true,"target":null,"kind":"normal"},{"name":"self_update","req":"^0.36.0","features":[],"optional":false,"default_features":true,"target":null,"kind":"normal"}],"cksum":"23ac4b2c88359176e2f257044ffee7fc90dc9a6bc541dd2b51bb3280b7f5056f","features":{},"yanked":false}

do you think I should contact the crates support team?

What? Why would you want that? Try the current master branch instead (at least be82659a2ec7dccd5f8f7b45459d4f9dd65e1486):

P:\Rust\cargo-update>target\debug\cargo-install-update install-update -li FileSorterX
    Polling registry 'https://index.crates.io/'.

Package      Installed  Latest  Needs update
FileSorterX  No         v1.2.0  Yes
nabijaczleweli commented 1 year ago

Fix released in v13.0.1.