[MacPorts] #55514: Add semantic versioning support to livecheck

MacPorts noreply at macports.org
Wed Dec 13 22:53:00 UTC 2017


#55514: Add semantic versioning support to livecheck
--------------------------+-----------------
 Reporter:  emcrisostomo  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  Normal        |  Milestone:
Component:  base          |    Version:
 Keywords:  livecheck     |       Port:
--------------------------+-----------------
 Today I noticed the following while working on a port update:

 {{{
 $ port livecheck devel/mongo-tools
 mongo-tools seems to have been updated (port version: 3.6.0, new version:
 3.6.0-rc8)
 }}}

 The `devel/mongo-tools` port uses the default `livecheck` settings set by
 the `github` port group.

 I'm aware that version numbers are tricky to sort, and that many different
 versioning schemes are used, so there are no silver bullets. But since
 [https://semver.org/ semantic versioning] is widely used nowadays, perhaps
 we could kill many birds with a stone and avoid port maintainers to come
 up with custom regexes. The `databases/mongo` port, for example, uses the
 same versioning scheme used by `devel/mongo-tools`, and it overcomes this
 problem using a custom regex that drops the `-*` and only captures the
 dot-separated numerical part of the version number).

 Implementing sorting of version numbers adhering to semver isn't
 complicated. Actually, I could contribute [https://github.com/emcrisostomo
 /semver-utils/ code] to do it.

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


More information about the macports-tickets mailing list