Skip to content

Commit

Permalink
fix: detect version prefix when using tag
Browse files Browse the repository at this point in the history
  • Loading branch information
gepbird committed Dec 23, 2024
1 parent 22dfae8 commit 3f6932b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nix_update/update.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,8 @@ def update_version(
branch = None
if package.rev and package.rev.endswith(package.old_version):
version_prefix = package.rev.removesuffix(package.old_version)
elif package.tag and package.tag.endswith(package.old_version):
version_prefix = package.tag.removesuffix(package.old_version)
elif version == "branch":
# fallback
branch = "HEAD"
Expand Down

0 comments on commit 3f6932b

Please sign in to comment.