Skip to content

Commit 718983d

Browse files
fix wrapper issue
1 parent d88c8f2 commit 718983d

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

dist/index.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6759,18 +6759,18 @@ async function installWrapper (pathToCLI) {
67596759
try {
67606760
source = [pathToCLI, `stackql${exeSuffix}`].join(path.sep);
67616761
target = [pathToCLI, `stackql-bin${exeSuffix}`].join(path.sep);
6762-
core.debug(`Moving ${source} to ${target}.`);
6762+
console.log(`Moving ${source} to ${target}.`);
67636763
await io.mv(source, target);
67646764
} catch (e) {
6765-
core.error(`Unable to move ${source} to ${target}.`);
6765+
console.log(`Unable to move ${source} to ${target}.`);
67666766
throw e;
67676767
}
67686768

67696769
// Install our wrapper as stackql by moving the wrapped executable to stackql
67706770
try {
67716771
source = path.resolve([__dirname, '..', 'wrapper', 'dist', 'index.js'].join(path.sep));
67726772
target = [pathToCLI, 'stackql'].join(path.sep);
6773-
core.debug(`Copying ${source} to ${target}.`);
6773+
console.log(`Copying ${source} to ${target}.`);
67746774
await io.cp(source, target);
67756775
} catch (e) {
67766776
core.error(`Unable to copy ${source} to ${target}.`);
@@ -6789,9 +6789,8 @@ async function setup(){
67896789
core.addPath(path)
67906790
await addPermission()
67916791
const wrapper = core.getInput('use_wrapper') === 'true';
6792-
core.debug('use wrapper', wrapper)
67936792
if(wrapper){
6794-
core.debug('installing wrapper')
6793+
console.log('installing wrapper')
67956794
await installWrapper(path)
67966795
}
67976796
}

index.js

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,18 +57,18 @@ async function installWrapper (pathToCLI) {
5757
try {
5858
source = [pathToCLI, `stackql${exeSuffix}`].join(path.sep);
5959
target = [pathToCLI, `stackql-bin${exeSuffix}`].join(path.sep);
60-
core.debug(`Moving ${source} to ${target}.`);
60+
console.log(`Moving ${source} to ${target}.`);
6161
await io.mv(source, target);
6262
} catch (e) {
63-
core.error(`Unable to move ${source} to ${target}.`);
63+
console.log(`Unable to move ${source} to ${target}.`);
6464
throw e;
6565
}
6666

6767
// Install our wrapper as stackql by moving the wrapped executable to stackql
6868
try {
6969
source = path.resolve([__dirname, '..', 'wrapper', 'dist', 'index.js'].join(path.sep));
7070
target = [pathToCLI, 'stackql'].join(path.sep);
71-
core.debug(`Copying ${source} to ${target}.`);
71+
console.log(`Copying ${source} to ${target}.`);
7272
await io.cp(source, target);
7373
} catch (e) {
7474
core.error(`Unable to copy ${source} to ${target}.`);
@@ -87,9 +87,8 @@ async function setup(){
8787
core.addPath(path)
8888
await addPermission()
8989
const wrapper = core.getInput('use_wrapper') === 'true';
90-
core.debug('use wrapper', wrapper)
9190
if(wrapper){
92-
core.debug('installing wrapper')
91+
console.log('installing wrapper')
9392
await installWrapper(path)
9493
}
9594
}

0 commit comments

Comments
 (0)