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