mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-12-22 04:48:18 +00:00
fix: Add check for non-semver version strings in cache check
This commit is contained in:
parent
f65da33a7d
commit
99c654d38a
1 changed files with 5 additions and 0 deletions
|
@ -86,6 +86,11 @@ export async function install_nextflow(
|
|||
}
|
||||
|
||||
export function check_cache(version: string): boolean {
|
||||
// A 'latest*' version indicates that a cached version would be invalid until
|
||||
// the version is resolved: abort
|
||||
if (version.includes("latest")) {
|
||||
return false
|
||||
}
|
||||
const cleaned_version = semver.clean(version, true)
|
||||
if (cleaned_version === null) {
|
||||
return false
|
||||
|
|
Loading…
Reference in a new issue