cargo-update
cargo-update copied to clipboard
Fails to update ion-shell
$ cargo install --git https://github.com/redox-os/ion
# wait for repo to update
$ cargo install-update -ag
Updating ion-shell from https://github.com/redox-os/ion
Updating git repository `https://github.com/redox-os/ion`
error: could not find `ion-shell` in https://github.com/redox-os/ion
I'm not sure what the error is, manually running cargo install --git https://github.com/redox-os/ion --force
does not throw any error for me. :/
Sorry for the delay, but the actual command executed by cargo-update
is cargo install -f --git https://github.com/redox-os/ion ion-shell
(note the ion-shell
package spec), so if you could re-try with that (because I can not reproduce your results :v).
@nabijaczleweli caching issue on your side maybe?
$ cargo install -f --git https://github.com/redox-os/ion ion-shell
Updating git repository `https://github.com/redox-os/ion`
error: could not find `ion-shell` in https://github.com/redox-os/ion
$ cargo install -f --git https://github.com/redox-os/ion
Updating git repository `https://github.com/redox-os/ion`
Installing ion-shell v1.0.0-alpha (https://github.com/redox-os/ion#171fe428)
Updating git repository `https://gitlab.redox-os.org/redox-os/liner`
Updating git repository `https://github.com/whitequark/rust-xdg`
Despite ion-shell
not building on my machine I just faked it, and:
$ cat .cargo\.crates.toml
[v1]
"cargo-update 0.8.1 (registry+https://github.com/rust-lang/crates.io-index)" = ["cargo-install-update-config.exe", "cargo-install-update.exe"]
"ion-shell 0.5.3 (git+https://github.com/redox-os/ion#f81f0ddf11b5258a52b374dc87f14f8a3857816e)" = ["ion-shell.exe"]
$ cargo install -f --git https://github.com/redox-os/ion ion-shell
Updating git repository `https://github.com/redox-os/ion`
Installing ion-shell v1.0.0-alpha (https://github.com/redox-os/ion#171fe428)
Compiling winapi-x86_64-pc-windows-gnu v0.4.0
...
^C
$ cargo install -f --git https://github.com/redox-os/ion
Updating git repository `https://github.com/redox-os/ion`
Installing ion-shell v1.0.0-alpha (https://github.com/redox-os/ion#171fe428)
Compiling winapi-x86_64-pc-windows-gnu v0.4.0
...
^C
$ cargo install --list
cargo-update v0.8.1:
cargo-install-update-config.exe
cargo-install-update.exe
ion-shell v0.5.3 (https://github.com/redox-os/ion#f81f0ddf):
ion-shell.exe
$ target\debug\cargo-install-update install-update -g ion-shell
Updating registry `https://github.com/rust-lang/crates.io-index`
Package Installed Latest Needs update
No packages need updating.
Package Installed Latest Needs update
ion-shell f81f0ddf11b5258a52b374dc87f14f8a3857816e 171fe4280c32263894d01cfb1039808e3f00d652 Yes
Updating ion-shell from https://github.com/redox-os/ion
Updating git repository `https://github.com/redox-os/ion`
Installing ion-shell v1.0.0-alpha (https://github.com/redox-os/ion#171fe428)
Compiling winapi-x86_64-pc-windows-gnu v0.4.0
...
^C
Anyway, this is interesting, since redox-os/ion/Cargo.toml
specifies name = "ion-shell"
, so I'm really confused WRT why that would happen.
Cannot install it on fresh OS after they made update 3 hours ago:
$ cargo install --git https://github.com/redox-os/ion
Updating git repository `https://github.com/redox-os/ion`
error: multiple packages with binaries found: ion-shell, ion-shell-fuzz
$ cargo install --git https://github.com/redox-os/ion ion-shell
Updating git repository `https://github.com/redox-os/ion`
error: could not find `ion-shell` in https://github.com/redox-os/ion
$ cargo install --git https://github.com/redox-os/ion ion
Updating git repository `https://github.com/redox-os/ion`
error: could not find `ion` in https://github.com/redox-os/ion
It doesn't make any sense so it must be cargo bug.
So, external
and an issue there, right?
Yeah but it has to be reported either to ion-shell or cargo. Ion-shell probably should be first pick.
Since I made the ticket, ion moved to gitlab, as primary development place but I'm not sure if this makes a difference.
I too get a failure on
cargo install -f --git https://github.com/redox-os/ion ion-shell
or
cargo install -f --git https://github.com/redox-os/ion ion
however cloning the repo and running
cargo install --path=. --bin ion --force
seems to work...??
(which is strange since cargo install -f --git https://github.com/redox-os/ion --bin ion
does not)
Oh well, looks like ticket belongs to cargo repo then :confused: @matthiaskrgr do you mind filling it?
I looked through the preexisting cargo tickets, I think we might be a victim of this one: https://github.com/rust-lang/cargo/issues/5495
After reinstalling from gitlab cargo-update -ag
updates ion
properly.
Reinstall command:
cargo install --git https://gitlab.redox-os.org/redox-os/ion ion-shell -f
hmm I'm guessing this is resolved, then?