From feb87aea422cb80374453abfc0accc1a206b3c77 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Fri, 20 Sep 2024 01:00:55 +0000 Subject: [PATCH] rancher-cli: update livecheck Signed-off-by: Rui Chen --- Formula/r/rancher-cli.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Formula/r/rancher-cli.rb b/Formula/r/rancher-cli.rb index 273b224682dd..28d61cc5879a 100644 --- a/Formula/r/rancher-cli.rb +++ b/Formula/r/rancher-cli.rb @@ -6,9 +6,12 @@ class RancherCli < Formula license "Apache-2.0" head "https://github.com/rancher/cli.git", branch: "master" + # Upstream creates releases that use a stable tag (e.g., `v1.2.3`) but are + # labeled as "pre-release" on GitHub before the version is released, so it's + # necessary to use the `GithubLatest` strategy. livecheck do url :stable - regex(/^v?(\d+(?:\.\d+)+)$/i) + strategy :github_latest end bottle do