Skip to content

Dovecot: upgrade to 2.4.1? #6239

Discussion options

You must be logged in to vote

Homebrew already has a mechanism to automatically detect the latest version called "livecheck" . Usually it works automatically (f.e. if a project is hosted on GitHub Homebrew already knows we just need to find the latest tag/release) but it may be a bit tricky to parse correct version on third-party website. The current version of the formula defines the following regex for version:

livecheck do
  url "https://www.dovecot.org/download/"
  regex(/href=.*?dovecot[._-]v?(\d+(?:\.\d+)+)\.t/i)
end

It cannot match https://dovecot.org/releases/2.4/dovecot-2.4.1-4.tar.gz (because of this -4 part) and therefore thinks 2.3.16 is the latest version (because there's no 2.4.0 link on the page).

I cre…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rxg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants