Skip to content

Commit 936bb9a

Browse files
BrewTestBotcarlocab
authored andcommitted
manticoresearch: update livecheck
This updates the `livecheck` block regex to document the use of the `GithubLatest` strategy, as the `stable` URL is a tag archive instead of a release asset.
1 parent a13a1ce commit 936bb9a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Formula/m/manticoresearch.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@ class Manticoresearch < Formula
1212
version_scheme 1
1313
head "https://github.com/manticoresoftware/manticoresearch.git", branch: "master"
1414

15-
# Only even patch versions are stable releases
15+
# There can be a notable gap between when a version is tagged and a
16+
# corresponding release is created, so we check the "latest" release instead
17+
# of the Git tags. The upstream version scheme uses an even-numbered patch to
18+
# indicate stable versions.
1619
livecheck do
1720
url :stable
1821
regex(/^v?(\d+(?:\.\d+)+\.\d*[02468])$/i)
22+
strategy :github_latest
1923
end
2024

2125
bottle do

0 commit comments

Comments
 (0)