mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-23 07:06:07 +00:00
Check exact version match
This commit is contained in:
@@ -67,8 +67,12 @@ 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() {
|
||||
|
||||
Reference in New Issue
Block a user