PaulDance / cargo-liner

Cargo subcommand to install and update binary packages listed in configuration
https://crates.io/crates/cargo-liner
GNU General Public License v3.0
11 stars 2 forks source link

ignore pre releases by default #17

Closed ToBinio closed 9 months ago

ToBinio commented 9 months ago

Description some packages have pre-releases e.g. tauri cli

currently, these versions do not get installed but liner things the currently installed version is out of date. So it tries to install them every time just to not install them since the most recent stable release is already installed

Preferred solution ignore all pre-releases by default and add a CLI flag or config entry to install pre-releases

Additional context I believe cargo search is not able to return the latest stable release so for this feature it would probably be necessary to replace cargo search with something like crates index

note: I would be able/interested in trying to implement this

PaulDance commented 9 months ago

Hi again!

This seems very much like a duplicate of #8 that already describes this issue at length. I'll therefore close the current one as such.

Feel free to re-open it if you feel that was a mistake, however. Also, to add anything you feel missing from the first issue.

The most promising resolution lead I have for it right now is to add a --dry-run CLI option directly to cargo install itself, like I mentioned in the other issue. Regarding the CLI option to force a pre-release, I'll very probably take a look at it right after fixing the problem.

Cheers, Paul.