From 48407af4551bf8e6d4600e1fc9ced48785d7433c Mon Sep 17 00:00:00 2001 From: Sam Ford <1584702+samford@users.noreply.github.com> Date: Sat, 2 Nov 2024 10:38:34 -0400 Subject: [PATCH] julia: update livecheck The existing `livecheck` block for `julia` uses the `GithubLatest` strategy but this is currently giving 1.10.6 as the newest version instead of 1.11.1. The lower version corresponds with LTS releases, so we can't guarantee that the "latest" release on GitHub will be for the newer stable versions. This updates the `livecheck` block to check the first-party download page, as it links to the `stable` tarball on GitHub, so we can check that without having to resort to using the `GithubReleases` strategy. --- Formula/j/julia.rb | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Formula/j/julia.rb b/Formula/j/julia.rb index 1897a139a9ff..82b6348a9da4 100644 --- a/Formula/j/julia.rb +++ b/Formula/j/julia.rb @@ -8,9 +8,13 @@ class Julia < Formula license all_of: ["MIT", "BSD-3-Clause", "Apache-2.0", "BSL-1.0"] head "https://github.com/JuliaLang/julia.git", branch: "master" + # Upstream creates GitHub releases for both stable and LTS versions, so the + # "latest" release on GitHub may be an LTS version instead of a "stable" + # version. This checks the first-party download page, which links to the + # `stable` tarballs from the newest releases on GitHub. livecheck do - url :stable - strategy :github_latest + url "https://julialang.org/downloads/" + regex(/href=.*?julia[._-]v?(\d+(?:\.\d+)+)[._-]full\.t/i) end bottle do