mirror of
https://github.com/erlef/setup-beam.git
synced 2026-08-02 12:06:09 +00:00
Check exact version match
This commit is contained in:
@@ -67,9 +67,13 @@ async function getElixirVersion(spec, otpVersion) {
|
||||
}
|
||||
|
||||
function getVersionFromSpec(spec, versions) {
|
||||
if (versions.includes(spec)) {
|
||||
return spec;
|
||||
} else {
|
||||
const range = semver.validRange(spec)
|
||||
return semver.maxSatisfying(versions, range)
|
||||
}
|
||||
}
|
||||
|
||||
async function getOtpVersions() {
|
||||
const result = await get("https://raw.githubusercontent.com/erlang/otp/master/otp_versions.table")
|
||||
|
||||
Reference in New Issue
Block a user