From 82e54fe6cc6c35470070f3619de41a8992cd2dda Mon Sep 17 00:00:00 2001 From: Sam Ford <1584702+samford@users.noreply.github.com> Date: Wed, 25 Dec 2024 08:30:44 -0500 Subject: [PATCH] forgit: add livecheck By default, livecheck checks the Git tags for `forgit` and this works but the formula's `stable` URL is a GitHub release asset and there can be a notable gap between when a tag is created and a release appears. For example, 24.12.0 was tagged on 2024-11-30 but there hasn't been a release yet, so livecheck has been returning this version as newest even though we can't update to it until a GitHub release is available. --- Formula/f/forgit.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Formula/f/forgit.rb b/Formula/f/forgit.rb index 10d8f450f984c..da4da45610c64 100644 --- a/Formula/f/forgit.rb +++ b/Formula/f/forgit.rb @@ -5,6 +5,11 @@ class Forgit < Formula sha256 "7b78553561bf0201d7cf3d1c892af35044cf74d76079bcdc421113e178324ef5" license "MIT" + livecheck do + url :stable + strategy :github_latest + end + bottle do sha256 cellar: :any_skip_relocation, all: "7a0752f36630c84cc3a7738fcc0928416022f38e10a56d54a127ae4ab748de3a" end