diff --git a/.github/workflows/rust_duplicate_deps.yml b/.github/workflows/rust_duplicate_deps.yml index 7b3ae46e1..49f085310 100644 --- a/.github/workflows/rust_duplicate_deps.yml +++ b/.github/workflows/rust_duplicate_deps.yml @@ -101,8 +101,10 @@ jobs: # Repo-relative path to the offending Cargo.toml, and the line to change. cargo_path="$dir/Cargo.toml" cargo_line=$(grep -nE "^$crate[[:space:]]*=" Cargo.toml | head -1) - cur=$(printf '%s' "$cargo_line" | grep -oE '[0-9][0-9.]+' | head -1) lineno=$(printf '%s' "$cargo_line" | cut -d: -f1) + # Strip grep -n's "N:" line-number prefix before reading the + # version, otherwise the line number is misread as the version. + cur=$(printf '%s' "${cargo_line#*:}" | grep -oE '[0-9][0-9.]+' | head -1) echo "::error::$crate versions aren't consistent. Fix: pin it to $want in $cargo_path." echo "In $cargo_path line $lineno, change" diff --git a/AwsEncryptionSDK/runtimes/rust/Cargo.toml b/AwsEncryptionSDK/runtimes/rust/Cargo.toml index 5fa841462..d4d81e12e 100644 --- a/AwsEncryptionSDK/runtimes/rust/Cargo.toml +++ b/AwsEncryptionSDK/runtimes/rust/Cargo.toml @@ -17,7 +17,7 @@ readme = "README.md" [dependencies] aws-config = "1.8.12" aws-lc-rs = {version = "1.18.0"} -aws-lc-sys = { version = "0.44", optional = true } +aws-lc-sys = { version = "0.45.0", optional = true } aws-lc-fips-sys = { version = "0.14.1", optional = true } aws-sdk-dynamodb = "1.103.0" aws-sdk-kms = "1.98.0" diff --git a/TestVectors/runtimes/rust/Cargo.toml b/TestVectors/runtimes/rust/Cargo.toml index 55a425e8a..ee1ba813a 100644 --- a/TestVectors/runtimes/rust/Cargo.toml +++ b/TestVectors/runtimes/rust/Cargo.toml @@ -12,7 +12,7 @@ readme = "README.md" [dependencies] aws-config = "1.8.12" aws-lc-rs = {version = "1.18.0"} -aws-lc-sys = { version = "0.44", optional = true } +aws-lc-sys = { version = "0.45.0", optional = true } aws-lc-fips-sys = { version = "0.14.1", optional = true } aws-sdk-dynamodb = "1.103.0" aws-sdk-kms = "1.98.0"