diff --git a/src/functions.ts b/src/functions.ts index 6795f8c..09f3d83 100644 --- a/src/functions.ts +++ b/src/functions.ts @@ -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