From 0f9e741aba4ea049205ffaf7b71eda0f2fcb5ed1 Mon Sep 17 00:00:00 2001 From: wpbonelli Date: Thu, 23 May 2024 13:02:39 -0400 Subject: [PATCH] fix(update_version.py): fix pixi.toml version string substitution (#1846) The update-version task was getting substituted too, we only want to sub the version string --- distribution/update_version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distribution/update_version.py b/distribution/update_version.py index 8422dfce354..0f567cd2140 100755 --- a/distribution/update_version.py +++ b/distribution/update_version.py @@ -336,7 +336,7 @@ def update_pixi(version: Version): tag = "version =" with open(path, "w") as fp: for line in lines: - if tag in line: + if line.startswith(tag): line = f'{tag} "{version}"\n' fp.write(line)