Refuse to use broken versions in the toolcache
This commit is contained in:
parent
6ad00fd084
commit
705f634a1d
6 changed files with 26 additions and 5 deletions
10
src/util.ts
10
src/util.ts
|
|
@ -14,6 +14,12 @@ import { Config } from "./config-utils";
|
|||
import { Language } from "./languages";
|
||||
import { Logger } from "./logging";
|
||||
|
||||
/**
|
||||
* Specifies bundle versions that are known to be broken
|
||||
* and will not be used if found in the toolcache.
|
||||
*/
|
||||
const BROKEN_VERSIONS = ["0.0.0-20211207"];
|
||||
|
||||
/**
|
||||
* The URL for github.com.
|
||||
*/
|
||||
|
|
@ -575,3 +581,7 @@ export async function bundleDb(
|
|||
export async function delay(milliseconds: number) {
|
||||
return new Promise((resolve) => setTimeout(resolve, milliseconds));
|
||||
}
|
||||
|
||||
export function isGoodVersion(versionSpec: string) {
|
||||
return !BROKEN_VERSIONS.includes(versionSpec);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue