From 3ea20d49e8b3196a58668935f30f8d4cdc4fb141 Mon Sep 17 00:00:00 2001 From: Nugine Date: Sun, 29 Dec 2024 14:21:00 +0800 Subject: [PATCH] fix(scripts): force install by default --- scripts/install.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/install.py b/scripts/install.py index 7d53b27..f7f88a2 100755 --- a/scripts/install.py +++ b/scripts/install.py @@ -40,11 +40,16 @@ def cargo_install( *, features: list[str] | None = None, bin: str | None = None, + force: bool = True, ): opt_offline = "--offline" if args.offline else "" opt_features = f"--features {','.join(features)}" if features else "" opt_bin = f"--bin {bin}" if bin else "" - sh(f"cargo install --path crates/{package} {opt_offline} {opt_features} {opt_bin}") + opt_force = "--force" if force else "" + sh( + f"cargo install --path crates/{package} " # + f"{opt_offline} {opt_features} {opt_bin} {opt_force}" + ) @installer("s3s-fs")