From 8ba1419f45942ed576ad58b0d7e958f8b9c81fa9 Mon Sep 17 00:00:00 2001 From: Brendan Allan Date: Thu, 28 Dec 2023 16:35:08 +0800 Subject: [PATCH] always use 3.0.x for openssl 3 --- crates/cli/src/binaries/platform.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/cli/src/binaries/platform.rs b/crates/cli/src/binaries/platform.rs index 542fcc1b..c239bbe0 100644 --- a/crates/cli/src/binaries/platform.rs +++ b/crates/cli/src/binaries/platform.rs @@ -127,7 +127,7 @@ fn parse_openssl_version(v: &str) -> String { let matches = r.unwrap().captures(v).unwrap(); if matches.len() > 0 { match matches.get(1).unwrap().as_str() { - "3.1" => "3.0.x".to_string(), + version if version.starts_with("3.") => "3.0.x".to_string(), version => format!("{version}.x"), } } else {