Closed Jocomol closed 3 years ago
uuh, well, it seems listed on crates.io, and
P:\Rust\cargo-update>cargo publish
Updating crates.io index
Packaging cargo-update v8.0.0 (P:\Rust\cargo-update)
Verifying cargo-update v8.0.0 (P:\Rust\cargo-update)
Compiling jobserver v0.1.22
Compiling pkg-config v0.3.19
Compiling winapi-x86_64-pc-windows-gnu v0.4.0
Compiling winapi v0.3.9
Compiling maybe-uninit v2.0.0
Compiling libc v0.2.94
Compiling matches v0.1.8
Compiling proc-macro2 v1.0.26
Compiling unicode-xid v0.2.2
Compiling bitflags v1.2.1
Compiling serde v1.0.126
Compiling memchr v2.3.4
Compiling percent-encoding v2.1.0
Compiling unicode-width v0.1.8
Compiling syn v1.0.72
Compiling log v0.4.14
Compiling serde_derive v1.0.126
Compiling embed-resource v1.6.2
Compiling cfg-if v1.0.0
Compiling semver-parser v0.7.0
Compiling regex-syntax v0.6.25
Compiling vec_map v0.8.2
Compiling cfg-if v0.1.10
Compiling strsim v0.8.0
Compiling lazysort v0.2.1
Compiling json v0.11.15
Compiling hex v0.4.2
Compiling array_tool v1.0.3
Compiling lazy_static v1.4.0
Compiling unicode-bidi v0.3.5
Compiling cc v1.0.67
Compiling tabwriter v1.2.1
Compiling form_urlencoded v1.0.1
Compiling cargo-update v8.0.0 (P:\Rust\cargo-update\target\package\cargo-update-8.0.0)
Compiling smallvec v0.6.14
Compiling aho-corasick v0.7.15
Compiling quote v1.0.9
Compiling unicode-normalization v0.1.9
Compiling regex v1.4.6
Compiling idna v0.2.0
Compiling libz-sys v1.1.3
Compiling libssh2-sys v0.2.21
Compiling libgit2-sys v0.10.0
Compiling url v2.2.2
Compiling toml v0.5.8
Compiling semver v0.9.0
Compiling term_size v0.3.2
Compiling atty v0.2.14
Compiling dirs-sys v0.3.6
Compiling textwrap v0.11.0
Compiling dirs v2.0.2
Compiling clap v2.33.3
Compiling git2 v0.11.0
Finished dev [unoptimized + debuginfo] target(s) in 2m 55s
Uploading cargo-update v8.0.0 (P:\Rust\cargo-update)
error: failed to publish to registry at https://crates.io
Caused by:
the remote server responded with an error: crate version `8.0.0` is already uploaded
and uh
nabijaczleweli@tarta:~$ cargo install cargo-update
Updating crates.io index
Downloaded cargo-update v8.0.0
Downloaded 1 crate (45.5 KB) in 0.50s
nabijaczleweli@tarta:~$ cargo install cargo-update
Updating crates.io index
Installing cargo-update v8.0.0
Downloaded cc v1.0.72
Downloaded 1 crate (57.5 KB) in 0.60s
Compiling libc v0.2.107
Compiling pkg-config v0.3.22
Compiling autocfg v1.0.1
Compiling maybe-uninit v2.0.0
Compiling matches v0.1.9
Compiling proc-macro2 v1.0.32
Compiling memchr v2.3.4
Compiling bitflags v1.2.1
Compiling serde v1.0.130
Compiling unicode-xid v0.2.2
Compiling syn v1.0.81
Compiling percent-encoding v2.1.0
Compiling log v0.4.14
Compiling serde_derive v1.0.130
Compiling cfg-if v1.0.0
Compiling cfg-if v0.1.10
Compiling openssl-probe v0.1.4
Compiling vec_map v0.8.2
Compiling ansi_term v0.11.0
Compiling regex-syntax v0.6.25
Compiling semver-parser v0.7.0
Compiling strsim v0.8.0
Compiling hex v0.4.2
Compiling json v0.11.15
Compiling array_tool v1.0.3
Compiling lazysort v0.2.1
Compiling lazy_static v1.4.0
Compiling unicode-bidi v0.3.5
Compiling tabwriter v1.2.1
Compiling form_urlencoded v1.0.1
Compiling smallvec v0.6.14
Compiling aho-corasick v0.7.15
Compiling unicode-normalization v0.1.9
Compiling quote v1.0.10
Compiling term_size v0.3.2
Compiling dirs-sys v0.3.6
Compiling atty v0.2.14
Compiling jobserver v0.1.24
Compiling textwrap v0.11.0
Compiling dirs v2.0.2
Compiling cc v1.0.72
Compiling clap v2.33.3
Compiling idna v0.2.0
Compiling embed-resource v1.6.5
Compiling regex v1.4.6
Compiling url v2.2.2
Compiling openssl-sys v0.9.70
Compiling libz-sys v1.1.3
Compiling libssh2-sys v0.2.23
Compiling libgit2-sys v0.10.0
Compiling cargo-update v8.0.0
Compiling semver v0.9.0
Compiling toml v0.5.8
Compiling git2 v0.11.0
Finished release [optimized] target(s) in 39.19s
Installing /home/nabijaczleweli/.cargo/bin/cargo-install-update
Installing /home/nabijaczleweli/.cargo/bin/cargo-install-update-config
Installed package `cargo-update v8.0.0` (executables `cargo-install-update`, `cargo-install-update-config`)
and even the registry you linked (which seems to be upstream, which is even more surprising) has https://github.com/rust-lang/crates.io-index/commit/afd2193502ff772a6e41a34e897336e9483a585e
So I'm gonna go with uh "your registry is out-of-date" and consider running
git -C ~/.cargo/registry/index/github.com-1ecc6299db9ec823 fetch -f https://github.com/rust-lang/crates.io-index refs/heads/master:refs/remotes/origin/master
to unstick it?
@nabijaczleweli Sadly your command didn't do anything. I try with reinstalling
Even when reinstalling cargo, it pulls cargo-update 7.0.1
Try completely razing the registry (rm -rf ~/.cargo/registry/index/github.com-1ecc6299db9ec823
)?
That worked, that you.
Hm, interesting!
same problem, same fix
The version 8.0.0 doesn't seem to exist, it always ends up installing 7.0.1 or failing with the following message when setting the
--version 8.0.0
flag:error: could not find "cargo-update" in registry "https://github.com/rust-lang/crates.io-index" with version "=8.0.0"