@@ -6762,39 +6762,39 @@ const urls = {
6762
6762
6763
6763
async function downloadCLI ( osPlatform ) {
6764
6764
try {
6765
- core . info ( `Preparing to download/install stackql for ${ osPlatform } ` ) ;
6765
+ core . info ( `preparing to download/install stackql for ${ osPlatform } ` ) ;
6766
6766
6767
6767
switch ( osPlatform ) {
6768
6768
case 'win32' :
6769
6769
return await tc . extractZip ( await tc . downloadTool ( urls [ osPlatform ] ) ) ;
6770
6770
case 'darwin' :
6771
6771
// Check if stackql is already installed using brew list --formula
6772
- core . info ( `Checking if stackql is already installed` ) ;
6772
+ core . info ( `checking if stackql is already installed... ` ) ;
6773
6773
try {
6774
6774
const installedFormulas = execSync ( 'brew list --formula' , { encoding : 'utf-8' } ) ;
6775
6775
if ( installedFormulas . includes ( 'stackql' ) ) {
6776
6776
core . info ( `stackql is already installed.` ) ;
6777
6777
const stackqlPath = execSync ( 'which stackql' , { encoding : 'utf-8' } ) . trim ( ) ;
6778
- core . debug ( `Stackql is located at: ${ stackqlPath } ` ) ;
6778
+ core . debug ( `stackql is located at: ${ stackqlPath } ` ) ;
6779
6779
return path . dirname ( stackqlPath ) ; // Return the directory of the binary
6780
6780
} else {
6781
- core . info ( `Installing stackql using Homebrew` ) ;
6781
+ core . info ( `installing stackql using Homebrew... ` ) ;
6782
6782
execSync ( 'brew install stackql' , { stdio : 'inherit' } ) ;
6783
6783
}
6784
6784
} catch ( error ) {
6785
- core . info ( `Error checking/installing stackql: ${ error } ` ) ;
6786
- throw new Error ( `Error checking/installing stackql: ${ error } ` ) ;
6785
+ core . info ( `error checking/installing stackql: ${ error } ` ) ;
6786
+ throw new Error ( `error checking/installing stackql: ${ error } ` ) ;
6787
6787
}
6788
6788
const installedPath = execSync ( 'which stackql' , { encoding : 'utf-8' } ) . trim ( ) ;
6789
- core . debug ( `Stackql installed at: ${ installedPath } ` ) ;
6789
+ core . debug ( `stackql installed at: ${ installedPath } ` ) ;
6790
6790
return path . dirname ( installedPath ) ; // Return the directory of the binary
6791
6791
case 'linux' :
6792
6792
return await tc . extractZip ( await tc . downloadTool ( urls [ osPlatform ] ) ) ;
6793
6793
default :
6794
- throw new Error ( `Unsupported platform: ${ osPlatform } ` ) ;
6794
+ throw new Error ( `unsupported platform: ${ osPlatform } ` ) ;
6795
6795
}
6796
6796
} catch ( error ) {
6797
- core . error ( `Failed to install Stackql : ${ error } ` ) ;
6797
+ core . error ( `failed to install stackql : ${ error } ` ) ;
6798
6798
throw error ;
6799
6799
}
6800
6800
}
@@ -6823,21 +6823,21 @@ async function installWrapper (pathToCLI) {
6823
6823
try {
6824
6824
source = [ pathToCLI , `stackql${ exeSuffix } ` ] . join ( path . sep ) ;
6825
6825
target = [ pathToCLI , `stackql-bin${ exeSuffix } ` ] . join ( path . sep ) ;
6826
- core . debug ( `Moving ${ source } to ${ target } .` ) ;
6826
+ core . debug ( `moving ${ source } to ${ target } .. .` ) ;
6827
6827
await io . mv ( source , target ) ;
6828
6828
} catch ( e ) {
6829
- core . debug ( `Unable to move ${ source } to ${ target } .` ) ;
6829
+ core . debug ( `unable to move ${ source } to ${ target } .` ) ;
6830
6830
throw e ;
6831
6831
}
6832
6832
6833
6833
// Install our wrapper as stackql by moving the wrapped executable to stackql
6834
6834
try {
6835
6835
source = path . resolve ( [ __dirname , '..' , 'wrapper' , 'dist' , 'index.js' ] . join ( path . sep ) ) ;
6836
6836
target = [ pathToCLI , 'stackql' ] . join ( path . sep ) ;
6837
- core . debug ( `Copying ${ source } to ${ target } .` ) ;
6837
+ core . debug ( `copying ${ source } to ${ target } .. .` ) ;
6838
6838
await io . cp ( source , target ) ;
6839
6839
} catch ( e ) {
6840
- core . error ( `Unable to copy ${ source } to ${ target } .` ) ;
6840
+ core . error ( `unable to copy ${ source } to ${ target } .` ) ;
6841
6841
throw e ;
6842
6842
}
6843
6843
@@ -6862,17 +6862,17 @@ async function setup() {
6862
6862
6863
6863
// set perms and make executable
6864
6864
if ( osPlatform != 'darwin' ) {
6865
- core . debug ( `updating permissions for ${ cliPath } ` ) ;
6865
+ core . debug ( `updating permissions for ${ cliPath } ... ` ) ;
6866
6866
fs . chmodSync ( cliPath , '777' ) ;
6867
- core . debug ( `adding ${ cliPath } to the path` ) ;
6867
+ core . debug ( `adding ${ cliPath } to the path... ` ) ;
6868
6868
core . addPath ( cliPath )
6869
6869
await makeExecutable ( cliPath , osPlatform )
6870
6870
}
6871
6871
6872
6872
const wrapper = core . getInput ( 'use_wrapper' ) === 'true' ;
6873
6873
6874
6874
if ( wrapper ) {
6875
- core . info ( 'installing wrapper' )
6875
+ core . info ( 'installing wrapper... ' )
6876
6876
await installWrapper ( cliPath )
6877
6877
}
6878
6878
core . info ( `successfully setup stackql at ${ cliPath } ` ) ;
0 commit comments