Update installer.ts

This commit is contained in:
Dilum Aluthge
2026-03-04 22:11:51 -05:00
committed by GitHub
parent c8ff8a1937
commit 210e196714

View File

@@ -183,11 +183,11 @@ export function getJuliaVersion(availableReleases: string[], versionInput: strin
// E.g. if the Julia [compat] entry is "1.10", then true_min_version is v"1.10.0"
let true_min_version = semver.minSatisfying(availableReleases, juliaCompatRange, {includePrerelease})
let my_tilde_range = `~${true_min_version}`
// min_with_patch is the minimum major/minor, but latest patch
// E.g. if the Julia [compat] entry is "1.10", then true_min_version is v"1.10.10" (or whatever the latest 1.10.x patch is)
// min_with_latest_patch is the minimum major/minor, but latest patch
// E.g. if the Julia [compat] entry is "1.10", then true__version is v"1.10.10" (or whatever the latest 1.10.x patch is)
// https://github.com/julia-actions/setup-julia/issues/372
min_with_patch = semver.maxSatisfying(availableReleases, my_tilde_range, {includePrerelease})
version = min_with_patch
min_with_latest_patch = semver.maxSatisfying(availableReleases, my_tilde_range, {includePrerelease})
version = min_with_latest_patch
} else if (versionInput == "lts") {
version = semver.maxSatisfying(availableReleases, LTS_VERSION, { includePrerelease: false });
} else if (versionInput == "pre") {