[MacPorts] #61703: livecheck sees older version without v prefix as newer than version with v prefix and higher version number

MacPorts noreply at macports.org
Sun Nov 29 17:46:55 UTC 2020


#61703: livecheck sees older version without v prefix as newer than version with v
prefix and higher version number
--------------------+--------------------
 Reporter:  Tatsh   |      Owner:  (none)
     Type:  defect  |     Status:  new
 Priority:  Normal  |  Milestone:
Component:  ports   |    Version:
 Keywords:          |       Port:
--------------------+--------------------
 The project aws-iam-authenticator unfortunately tagged inconsistently so
 now their newest tags have a v prefix but their older ones do not. It
 causes the vercmp to see their longest length non-prefixed version as the
 newest version, rather than the version with the v and that is also a
 higher number.

 https://github.com/kubernetes-sigs/aws-iam-authenticator/tags

 Debug output:

 {{{
 DEBUG: Port (livecheck) version is v0.5.2
 DEBUG: Fetching https://github.com/kubernetes-sigs/aws-iam-
 authenticator/tags
 DEBUG: Using CURL options "--append-http-header" "Accept:
 text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8"
 DEBUG: The regex is "archive/([^"]+)\.tar\.gz"
 DEBUG: The regex matched "archive/v0.5.2.tar.gz", extracted "v0.5.2"
 DEBUG: The regex matched "archive/v0.5.1.tar.gz", extracted "v0.5.1"
 DEBUG: The regex matched "archive/v0.5.1-alpha.1.tar.gz", extracted
 "v0.5.1-alpha.1"
 DEBUG: The regex matched "archive/v0.5.0.tar.gz", extracted "v0.5.0"
 DEBUG: The regex matched "archive/v0.4.0.tar.gz", extracted "v0.4.0"
 DEBUG: The regex matched "archive/0.4.0-alpha.3.tar.gz", extracted
 "0.4.0-alpha.3"
 DEBUG: The regex matched "archive/0.4.0-alpha.1.tar.gz", extracted
 "0.4.0-alpha.1"
 DEBUG: The regex matched "archive/0.4.0-alpha.tar.gz", extracted
 "0.4.0-alpha"
 DEBUG: The regex matched "archive/v0.3.0.tar.gz", extracted "v0.3.0"
 DEBUG: The regex matched "archive/v0.2.0-pre.tar.gz", extracted
 "v0.2.0-pre"
 aws-iam-authenticator seems to have been updated (port version: v0.5.2,
 new version: 0.4.0-alpha.3)
 }}}

 v0.5.2 should be seen as the newest. Can vercmp ignore the missing v in
 either version?

 Portfile is here: https://github.com/Tatsh/ports/blob/master/security/aws-
 iam-authenticator/Portfile

-- 
Ticket URL: <https://trac.macports.org/ticket/61703>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list