“You meant to install ripgrep”
crates.io
“You meant to install ripgrep”
1–10 of 165 posts
Re: “You meant to install ripgrep”
#2 println!("You meant to install ripgrep: type `cargo uninstall rg` followed by `cargo install ripgrep`");Re: “You meant to install ripgrep”
#3(I'm the author of ripgrep.)
Re: “You meant to install ripgrep”
#4Re: “You meant to install ripgrep”
#5`rg` has only one version, and one line of code: println!("You meant to install ripgrep: type `cargo uninstall rg` followed by `cargo install ripgrep`");
compile_error!("You meant to …");
so that the install would fail and `cargo uninstall rg` wouldn't be needed.Re: “You meant to install ripgrep”
#6Is there no way to have a package mirror, or alias or something? Unless I'm missing a joke or something, this seems like an easily solvable problem.
Re: “You meant to install ripgrep”
#7Is there no way to have a package mirror, or alias or something? Unless I'm missing a joke or something, this seems like an easily solvable problem.
Re: “You meant to install ripgrep”
#8`rg` has only one version, and one line of code: println!("You meant to install ripgrep: type `cargo uninstall rg` followed by `cargo install ripgrep`");
Seems like it would be better to contain: compile_error!("You meant to …"); so that the install would fail and `cargo uninstall rg` wouldn't be needed.
Re: “You meant to install ripgrep”
#9Is there no way to have a package mirror, or alias or something? Unless I'm missing a joke or something, this seems like an easily solvable problem.
The solutions here are non-flat namespacing (which has worse UX, since `cargo install some-tool` now becomes `cargo install whats-their-handle-again/some-tool`) or some kind of content addressing (which is similarly bad for UX, if not worse). Most package indices choose neither, and "solve" the problem by playing whac-a-mole with abuse instead.
Re: “You meant to install ripgrep”
#10Hah! TIL. I had no idea someone did this. But it's smart. I should have thought of it! (I'm the author of ripgrep.)
Before you do something like that, always ask yourself: "What if everyone else started doing this?"
If the result feels like a nightmare in the making, don't do it.