@@ -284,19 +284,21 @@ async function maybeDownload(
284284) : Promise < ElideRelease > {
285285 // build download URL, use result from cache or disk
286286 const { url, archiveType } = await buildDownloadUrl ( options , version )
287- core . info ( `Installing from URL: ${ url } (type: ${ archiveType } )` )
287+ let targetBin = ` ${ options . install_path } /elide`
288288
289- let targetBin = `${ options . target } /elide`
289+ if ( options . no_cache === true ) {
290+ console . info ( 'Tool caching is disabled.' )
291+ }
290292
291293 /* istanbul ignore next */
292294 if ( options . os === ElideOS . WINDOWS ) {
293- targetBin = `${ options . target } \\elide.exe`
295+ targetBin = `${ options . install_path } \\elide.exe`
294296 }
295297
296298 // build resulting tarball path and resolved tool info
297299 let elidePath : string = targetBin
298300 /* istanbul ignore next */
299- let elideHome : string = process . env . ELIDE_HOME || options . target
301+ let elideHome : string = process . env . ELIDE_HOME || options . install_path
300302 let elidePathTarget = elideHome
301303 const elideBin : string = elideHome // @TODO (sgammon): bin folder?
302304 let elideDir : string | null = null
@@ -315,6 +317,7 @@ async function maybeDownload(
315317 // we have an existing cached copy of elide
316318 core . debug ( 'Caching enabled and cached Elide release found; using it' )
317319 elidePath = elideDir
320+ core . info ( `Using cached copy of Elide at version ${ version . tag_name } ` )
318321 } else {
319322 /* istanbul ignore next */
320323 if ( options . no_cache ) {
@@ -325,6 +328,8 @@ async function maybeDownload(
325328 core . debug ( 'Cache enabled but no hit was found; downloading release' )
326329 }
327330
331+ core . info ( `Installing from URL: ${ url } (type: ${ archiveType } )` )
332+
328333 // we do not have an existing copy; download it
329334 let elideArchive : string | null = null
330335 try {
@@ -339,6 +344,7 @@ async function maybeDownload(
339344 }
340345
341346 core . debug ( `Elide release downloaded to: ${ elideArchive } ` )
347+
342348 elideHome = await unpackRelease (
343349 elideArchive ,
344350 elideHome ,
@@ -400,7 +406,7 @@ export async function downloadRelease(
400406 }
401407
402408 /* istanbul ignore next */
403- let elideHome : string = process . env . ELIDE_HOME || options . target
409+ let elideHome : string = process . env . ELIDE_HOME || options . install_path
404410 elideHome = await unpackRelease (
405411 customArchive ,
406412 elideHome ,
0 commit comments