Compare commits

..

3 Commits

Author SHA1 Message Date
Taiki Endo
74efbe3ca4 Release 1.11.1 2022-08-13 16:16:46 +09:00
Taiki Endo
0ed66b7383 Update changelog 2022-08-13 16:14:20 +09:00
Jiahao XU
b9424a9dfb Cargo binstall force (#19)
* Upgrade `cargo-binstall` if already installed
* Use `--force` for `cargo-binstall` in case bin is not cached

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-08-13 16:02:28 +09:00
2 changed files with 11 additions and 5 deletions

View File

@@ -10,10 +10,14 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
## [Unreleased]
## [1.11.1] - 2022-08-13
- Make installation that uses `cargo-binstall` robust. ([#19](https://github.com/taiki-e/install-action/pull/19), thanks @NobodyXu)
## [1.11.0] - 2022-08-13
- Update `cargo-hack@latest` to 0.5.17.
- Support `cargo-udeps`.
- Support `cargo-udeps`. ([#17](https://github.com/taiki-e/install-action/pull/17), thanks @gifnksm)
## [1.10.4] - 2022-08-06
@@ -286,7 +290,8 @@ Note: In this file, do not use the hard wrap in the middle of a sentence for com
Initial release
[Unreleased]: https://github.com/taiki-e/install-action/compare/v1.11.0...HEAD
[Unreleased]: https://github.com/taiki-e/install-action/compare/v1.11.1...HEAD
[1.11.1]: https://github.com/taiki-e/install-action/compare/v1.11.0...v1.11.1
[1.11.0]: https://github.com/taiki-e/install-action/compare/v1.10.4...v1.11.0
[1.10.4]: https://github.com/taiki-e/install-action/compare/v1.10.3...v1.10.4
[1.10.3]: https://github.com/taiki-e/install-action/compare/v1.10.2...v1.10.3

View File

@@ -107,7 +107,8 @@ install_cargo_binstall() {
info "cargo-binstall installed at $(type -P "cargo-binstall${exe}")"
x cargo binstall -V
else
info "cargo-binstall already installed on in ${cargo_bin}/cargo-binstall"
info "cargo-binstall already installed on in ${cargo_bin}/cargo-binstall, upgrading"
cargo binstall --secure --no-confirm --version '>=0.12.0' cargo-binstall
fi
}
cargo_binstall() {
@@ -122,8 +123,8 @@ cargo_binstall() {
# As a result, http will be disabled, and it will also set
# min tls version to be 1.2
case "${version}" in
latest) cargo binstall --secure --no-confirm "$tool" ;;
*) cargo binstall --secure --no-confirm --version "$version" "$tool" ;;
latest) cargo binstall --force --secure --no-confirm "$tool" ;;
*) cargo binstall --force --secure --no-confirm --version "$version" "$tool" ;;
esac
}