Make `RequireRustBuildTool` Gradle task use `--locked` when `cargo install`ing (#2210)

This commit is contained in:
david-perez 2023-01-18 16:26:06 +01:00 committed by GitHub
parent 8013166c9b
commit 4fbfc07336
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -101,6 +101,7 @@ abstract class RequireRustBuildTool : DefaultTask() {
if (System.getenv()["SMITHY_RS_DOCKER_BUILD_IMAGE"] != "1") {
val command = mutableListOf("cargo")
command.add("install")
command.add("--locked")
command.add("--path")
command.add(toolPath!!.absolutePath)
runCli(