Skip to content

Commit 8f0699c

Browse files
committed
argtable3: add livecheck
Upstream uses a tag format including a version and hash (e.g., `v3.2.2.f25c624`) and we only use the version part in the formula, so this adds a `livecheck` block with a regex that omits the hash part to match the formula version format. This makes it so that livecheck won't incorrectly surface the tag with the hash as newer than the same version without the hash.
1 parent b01d931 commit 8f0699c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Formula/a/argtable3.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ class Argtable3 < Formula
77
license "BSD-3-Clause"
88
head "https://github.com/argtable/argtable3.git", branch: "master"
99

10+
# Upstream uses a tag format including a version and hash (e.g.
11+
# `v3.2.2.f25c624`) and we only use the version part in the formula, so this
12+
# omits the hash part to match.
13+
livecheck do
14+
url :stable
15+
regex(/^v?(\d+(?:\.\d+)+)(?:\.\h+)?$/i)
16+
end
17+
1018
bottle do
1119
sha256 cellar: :any, arm64_sequoia: "977cc6d2b39d50551e00be1cb664891ba886e3e63779769713815ab5c830d4f7"
1220
sha256 cellar: :any, arm64_sonoma: "59140a12791b4cd3733fd383bbd91373d517ed6a22dded4ae9e74b8fd2039844"

0 commit comments

Comments
 (0)