Skip to content

Commit 80170e4

Browse files
committed
incus: add livecheck
By default, livecheck isn't able to check the `stable` URL for `incus`, so it falls back to checking the Git tags from the `head` URL. This adds a `livecheck` block that checks the first-party download page, which links to the `stable` tarball.
1 parent 292b400 commit 80170e4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Formula/i/incus.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ class Incus < Formula
66
license "Apache-2.0"
77
head "https://github.com/lxc/incus.git", branch: "main"
88

9+
livecheck do
10+
url "https://linuxcontainers.org/incus/downloads/"
11+
regex(/href=.*?incus[._-]v?(\d+(?:\.\d+)+)\.t/i)
12+
end
13+
914
bottle do
1015
sha256 cellar: :any_skip_relocation, arm64_sequoia: "44913f8cad662c918fdfd54f5918cd957cc802d7d688b1354731a51a4d724f4a"
1116
sha256 cellar: :any_skip_relocation, arm64_sonoma: "44913f8cad662c918fdfd54f5918cd957cc802d7d688b1354731a51a4d724f4a"

0 commit comments

Comments
 (0)