Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Skip if already installed and add new cmdline option --force #282

Merged
merged 23 commits into from
Aug 8, 2022

Conversation

NobodyXu
Copy link
Member

@NobodyXu NobodyXu commented Aug 4, 2022

Resolve #270

Signed-off-by: Jiahao XU Jiahao_XU@outlook.com

@NobodyXu NobodyXu added the PR: improvement PR that improves existing features or code label Aug 4, 2022
@NobodyXu
Copy link
Member Author

NobodyXu commented Aug 4, 2022

This PR is waiting for #281 to be merged to avoid merge conflicts.

@NobodyXu NobodyXu marked this pull request as ready for review August 5, 2022 05:43
@NobodyXu NobodyXu requested a review from passcod August 5, 2022 05:43
@NobodyXu NobodyXu added the PR: bugfix PR that fixes a bug label Aug 5, 2022
@NobodyXu NobodyXu removed the PR: bugfix PR that fixes a bug label Aug 5, 2022
@NobodyXu NobodyXu changed the title Skip if already installed Skip if already installed and add new cmdline option --force Aug 5, 2022
src/main.rs Outdated Show resolved Hide resolved
@passcod
Copy link
Member

passcod commented Aug 6, 2022

Also we should log::info!("package {name} v{version} is already installed, use --force to override")

@passcod passcod mentioned this pull request Aug 6, 2022
@NobodyXu
Copy link
Member Author

NobodyXu commented Aug 7, 2022

Also we should log::info!("package {name} v{version} is already installed, use --force to override")

I added the logging, though the format is a little bit different.

src/main.rs Outdated Show resolved Hide resolved
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
since they involves blocking fs io.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Since it could also issues blocking operations.

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
`Option<VersionReq>`

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
instead of `&str`

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
`CrateName` in `binstall::install`

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
src/main.rs Outdated Show resolved Hide resolved
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
@NobodyXu NobodyXu merged commit 9034f78 into main Aug 8, 2022
@NobodyXu NobodyXu deleted the skip-if-already-installed branch August 8, 2022 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PR: improvement PR that improves existing features or code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Inconsistent behaviour when crate already installed: overriden if downloading and ignored if already installed
2 participants