Skip to content

Commit

Permalink
fix: Fix to normalize versions for git-tag-and-sha
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidz committed Apr 30, 2023
1 parent d544173 commit eb338fd
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/antq/ver/git_tag_and_sha.clj
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,12 @@
[ex]
(throw ex)))))

(defmethod ver/latest? :git-tag-and-sha
[dep]
(and (:version dep)
(:latest-version dep)
(string? (:version dep))
(string? (:latest-version dep))
(<= 0 (version/version-compare
(u.ver/normalize-version (:version dep))
(u.ver/normalize-version (:latest-version dep))))))

0 comments on commit eb338fd

Please sign in to comment.