From dcad3a3a277422c7d96760544b5e75f5e6ce6419 Mon Sep 17 00:00:00 2001 From: rcourtman Date: Mon, 20 Oct 2025 18:19:31 +0000 Subject: [PATCH] fix: allow dev/main builds to bypass version check Version check was blocking dev/main builds (e.g., '0.0.0-main-da9da6f') from using temperature proxy, even though they have the latest code. Added regex to skip version check for builds matching: - ^0\.0\.0-main (main branch builds) - ^dev (dev builds) - ^main (main version strings) These builds are assumed to have proxy support since they're built from the latest codebase. Fixes testing workflow when installing Pulse with --main flag --- internal/api/config_handlers.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/api/config_handlers.go b/internal/api/config_handlers.go index c7bbb55..6e45a58 100644 --- a/internal/api/config_handlers.go +++ b/internal/api/config_handlers.go @@ -3672,6 +3672,10 @@ if [ "$PULSE_IS_CONTAINERIZED" = true ]; then echo "⚠️ Could not determine Pulse version from $PULSE_VERSION_ENDPOINT" echo " Temperature proxy requires Pulse $MIN_PROXY_VERSION or later." TEMP_MONITORING_AVAILABLE=false + # Allow dev/main builds (they have latest code) + elif [[ "$PULSE_VERSION" =~ ^(0\.0\.0-main|dev|main) ]]; then + # Dev/main builds have proxy support - skip version check + : elif ! version_ge "$PULSE_VERSION" "$MIN_PROXY_VERSION"; then echo "" echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"