From ea90deba9615638eb902f8d7fce3db7c5b40bda1 Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Wed, 4 Sep 2024 17:37:52 +0100 Subject: [PATCH] Revert "Don't return master as version" This reverts commit 2d62e97e33aadbaa8c8f4d7823f0162863c38fe3. --- scripts/lib/env.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/lib/env.py b/scripts/lib/env.py index 26ba90c50..2bd53b9db 100644 --- a/scripts/lib/env.py +++ b/scripts/lib/env.py @@ -237,10 +237,7 @@ def get_app_version(): Returns the version either from the env var, or from the version file. """ version = get_env("SYNERGY_VERSION", required=False) - - # TODO: Perhaps regex match the version string and if it's not a valid version, - # log a warning and fall back to the VERSION file value. - if version and version != "master": + if version: return version with open("VERSION", "r") as f: