Temporarily disable cache usage
This commit is contained in:
@@ -111,7 +111,8 @@ describe('installer tests', () => {
|
||||
return;
|
||||
});
|
||||
|
||||
it('Resolves semantic versions of node installed in cache', async () => {
|
||||
// Usage of pre-cached Node.js is temporarily disabled.
|
||||
xit('Resolves semantic versions of node installed in cache', async () => {
|
||||
const nodeDir: string = path.join(toolDir, 'node', '252.0.0', os.arch());
|
||||
await io.mkdirP(nodeDir);
|
||||
fs.writeFileSync(`${nodeDir}.complete`, 'hello');
|
||||
|
||||
Vendored
+4
-3
File diff suppressed because one or more lines are too long
+2
-1
@@ -25,7 +25,8 @@ export async function getNode(versionSpec: string) {
|
||||
toolPath = tc.find('node', versionSpec);
|
||||
|
||||
// If not found in cache, download
|
||||
if (!toolPath) {
|
||||
// Usage of pre-cached Node.js is temporarily disabled.
|
||||
if (true) {
|
||||
let version: string;
|
||||
const c = semver.clean(versionSpec) || '';
|
||||
// If explicit version
|
||||
|
||||
Reference in New Issue
Block a user