mirror of
https://github.com/erlef/setup-beam.git
synced 2026-07-22 22:56:07 +00:00
Fix usage of version latest not matching internal elements (#298)
This commit is contained in:
committed by
GitHub
parent
168876b81a
commit
a54aa91870
Vendored
+3
-1
@@ -9536,6 +9536,8 @@ function getVersionFromSpec(spec0, versions0) {
|
||||
// If `version-type: strict` or version is RC, we obtain it directly
|
||||
version = versions0[spec]
|
||||
}
|
||||
} else if (spec0 === 'latest') {
|
||||
version = versions0[versions0.latest]
|
||||
} else if (rangeMax !== null) {
|
||||
// Otherwise, we compare alt. versions' semver ranges to this version, from highest to lowest
|
||||
const thatVersion = spec
|
||||
@@ -9604,7 +9606,7 @@ function isRC(ver) {
|
||||
}
|
||||
|
||||
function isKnownBranch(ver) {
|
||||
return ['main', 'master', 'maint', 'latest'].includes(ver)
|
||||
return ['main', 'master', 'maint'].includes(ver)
|
||||
}
|
||||
|
||||
function githubARMRunnerArchs() {
|
||||
|
||||
+3
-1
@@ -436,6 +436,8 @@ function getVersionFromSpec(spec0, versions0) {
|
||||
// If `version-type: strict` or version is RC, we obtain it directly
|
||||
version = versions0[spec]
|
||||
}
|
||||
} else if (spec0 === 'latest') {
|
||||
version = versions0[versions0.latest]
|
||||
} else if (rangeMax !== null) {
|
||||
// Otherwise, we compare alt. versions' semver ranges to this version, from highest to lowest
|
||||
const thatVersion = spec
|
||||
@@ -504,7 +506,7 @@ function isRC(ver) {
|
||||
}
|
||||
|
||||
function isKnownBranch(ver) {
|
||||
return ['main', 'master', 'maint', 'latest'].includes(ver)
|
||||
return ['main', 'master', 'maint'].includes(ver)
|
||||
}
|
||||
|
||||
function githubARMRunnerArchs() {
|
||||
|
||||
Reference in New Issue
Block a user