Skip to content

Commit

Permalink
guile-gnutls: add livecheck
Browse files Browse the repository at this point in the history
By default, livecheck isn't able to check the `stable` URL for
`guile-gnutls`, so it falls back to checking the Git tags from the
`head` URL. This adds a `livecheck` block that checks tags from GitLab
releases, which aligns with the `stable` URL source.
  • Loading branch information
samford committed Dec 29, 2024
1 parent 6c60ff6 commit ed97470
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Formula/g/guile-gnutls.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ class GuileGnutls < Formula
license "LGPL-2.1-or-later"
head "https://gitlab.com/gnutls/guile.git", branch: "master"

livecheck do
url "https://gitlab.com/api/v4/projects/40217954/releases"
regex(/^(?:gnutls[._-])?v?(\d+(?:[._]\d+)+)$/i)
strategy :json do |json, regex|
json.map { |item| item["tag_name"]&.[](regex, 1)&.tr("_", ".") }
end
end

bottle do
sha256 arm64_sequoia: "774fbd9464a92152b3506f67c9e5b2f7349575e2031293e50132017b7a3e98bb"
sha256 arm64_sonoma: "a50a21859c4523e1a26aa0e9b566d69b8351da2a31b8f01999b407551b2cc4d1"
Expand Down

0 comments on commit ed97470

Please sign in to comment.