File tree 3 files changed +14
-6
lines changed
3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -88,7 +88,8 @@ describe('installer tests', () => {
88
88
}
89
89
} , 100000 ) ;
90
90
91
- it ( 'Uses version of node installed in cache' , async ( ) => {
91
+ // Usage of pre-cached Node.js is temporarily disabled.
92
+ xit ( 'Uses version of node installed in cache' , async ( ) => {
92
93
const nodeDir : string = path . join ( toolDir , 'node' , '250.0.0' , os . arch ( ) ) ;
93
94
await io . mkdirP ( nodeDir ) ;
94
95
fs . writeFileSync ( `${ nodeDir } .complete` , 'hello' ) ;
@@ -111,7 +112,8 @@ describe('installer tests', () => {
111
112
return ;
112
113
} ) ;
113
114
114
- it ( 'Resolves semantic versions of node installed in cache' , async ( ) => {
115
+ // Usage of pre-cached Node.js is temporarily disabled.
116
+ xit ( 'Resolves semantic versions of node installed in cache' , async ( ) => {
115
117
const nodeDir : string = path . join ( toolDir , 'node' , '252.0.0' , os . arch ( ) ) ;
116
118
await io . mkdirP ( nodeDir ) ;
117
119
fs . writeFileSync ( `${ nodeDir } .complete` , 'hello' ) ;
Original file line number Diff line number Diff line change @@ -12231,7 +12231,8 @@ function getNode(versionSpec) {
12231
12231
let toolPath;
12232
12232
toolPath = tc.find('node', versionSpec);
12233
12233
// If not found in cache, download
12234
- if (!toolPath) {
12234
+ // Usage of pre-cached Node.js is temporarily disabled.
12235
+ if (true) {
12235
12236
let version;
12236
12237
const c = semver.clean(versionSpec) || '';
12237
12238
// If explicit version
@@ -12248,7 +12249,8 @@ function getNode(versionSpec) {
12248
12249
// check cache
12249
12250
toolPath = tc.find('node', version);
12250
12251
}
12251
- if (!toolPath) {
12252
+ // Usage of pre-cached Node.js is temporarily disabled.
12253
+ if (true) {
12252
12254
// download, extract, cache
12253
12255
toolPath = yield acquireNode(version);
12254
12256
}
@@ -12342,6 +12344,7 @@ function acquireNode(version) {
12342
12344
let downloadUrl = `https://nodejs.org/dist/v${version}/${urlFileName}`;
12343
12345
let downloadPath;
12344
12346
try {
12347
+ core.info(`Downloading ${downloadUrl}`);
12345
12348
downloadPath = yield tc.downloadTool(downloadUrl);
12346
12349
}
12347
12350
catch (err) {
Original file line number Diff line number Diff line change @@ -25,7 +25,8 @@ export async function getNode(versionSpec: string) {
25
25
toolPath = tc . find ( 'node' , versionSpec ) ;
26
26
27
27
// If not found in cache, download
28
- if ( ! toolPath ) {
28
+ // Usage of pre-cached Node.js is temporarily disabled.
29
+ if ( true ) {
29
30
let version : string ;
30
31
const c = semver . clean ( versionSpec ) || '' ;
31
32
// If explicit version
@@ -45,7 +46,8 @@ export async function getNode(versionSpec: string) {
45
46
toolPath = tc . find ( 'node' , version ) ;
46
47
}
47
48
48
- if ( ! toolPath ) {
49
+ // Usage of pre-cached Node.js is temporarily disabled.
50
+ if ( true ) {
49
51
// download, extract, cache
50
52
toolPath = await acquireNode ( version ) ;
51
53
}
@@ -146,6 +148,7 @@ async function acquireNode(version: string): Promise<string> {
146
148
let downloadPath : string ;
147
149
148
150
try {
151
+ core . info ( `Downloading ${ downloadUrl } ` ) ;
149
152
downloadPath = await tc . downloadTool ( downloadUrl ) ;
150
153
} catch ( err ) {
151
154
if ( err instanceof tc . HTTPError && err . httpStatusCode == 404 ) {
You can’t perform that action at this time.
0 commit comments