Skip to content

Commit

Permalink
fix(update_version.py): fix pixi.toml version string substitution (#1846
Browse files Browse the repository at this point in the history
)

The update-version task was getting substituted too, we only want to sub the version string
  • Loading branch information
wpbonelli authored May 23, 2024
1 parent baf2328 commit 0f9e741
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion distribution/update_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 0f9e741

Please sign in to comment.