From 6d15f1b3f524c11923ec1a5daba1c1903ff63a27 Mon Sep 17 00:00:00 2001 From: Kevin Janssen Date: Wed, 18 Nov 2026 17:59:34 +0100 Subject: [PATCH] Use the shared target triple for the release catalog --- crates/server/src/agent_updates.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/crates/server/src/agent_updates.rs b/crates/server/src/agent_updates.rs index 7047b6f..ff25fb1 100644 --- a/crates/server/src/agent_updates.rs +++ b/crates/server/src/agent_updates.rs @@ -42,11 +42,7 @@ fn invalid() -> Error { Error(StatusCode::BAD_REQUEST, "INVALID_AGENT_RELEASE") } pub fn platform_name(platform: Platform) -> &'static str { - match platform { - Platform::LinuxX64 => "x86_64-unknown-linux-gnu", - Platform::WindowsX64 => "x86_64-pc-windows-msvc", - Platform::WindowsGnuX64 => "x86_64-pc-windows-gnu", - } + platform.target_triple() } pub fn protected_file(path: &FsPath, maximum: u64) -> Result, Error> { let key_path =