cargo-update icon indicating copy to clipboard operation
cargo-update copied to clipboard

Fails to update ion-shell

Open matthiaskrgr opened this issue 6 years ago • 11 comments

$ 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. :/

matthiaskrgr avatar May 30 '18 15:05 matthiaskrgr

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 avatar Jun 28 '18 14:06 nabijaczleweli

@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`

mati865 avatar Jun 28 '18 15:06 mati865

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.

nabijaczleweli avatar Jun 28 '18 18:06 nabijaczleweli

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.

mati865 avatar Jun 28 '18 21:06 mati865

So, external and an issue there, right?

nabijaczleweli avatar Jun 29 '18 01:06 nabijaczleweli

Yeah but it has to be reported either to ion-shell or cargo. Ion-shell probably should be first pick.

mati865 avatar Jun 29 '18 07:06 mati865

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)

matthiaskrgr avatar Jun 29 '18 13:06 matthiaskrgr

Oh well, looks like ticket belongs to cargo repo then :confused: @matthiaskrgr do you mind filling it?

mati865 avatar Jun 29 '18 14:06 mati865

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

matthiaskrgr avatar Jul 01 '18 12:07 matthiaskrgr

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

mati865 avatar Jul 16 '18 12:07 mati865

hmm I'm guessing this is resolved, then?

nabijaczleweli avatar Sep 07 '19 18:09 nabijaczleweli