Skip to content

Commit

Permalink
julia: update livecheck
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
samford committed Nov 2, 2024
1 parent 4cfd4e4 commit 48407af
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Formula/j/julia.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 48407af

Please sign in to comment.