Skip to content

Commit

Permalink
fix(scripts): force install by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Nugine committed Dec 29, 2024
1 parent bc73631 commit 3ea20d4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 3ea20d4

Please sign in to comment.