benallfree / gobot

Popular binaries via npm. CLI and API.
20 stars 2 forks source link

Updated from alpha 14 to 34 and getting an error #4

Closed VictorioBerra closed 7 months ago

VictorioBerra commented 7 months ago

image

First it complained with this code:

import { gobot } from "gobot";
const bot = await gobot(`pocketbase`);
bot.run([`--help`]);

Error: pocketbase is not a binary known to Gobot. Try user/repo

this fixed that error:

import { gobot } from "gobot";
const bot = await gobot(`pocketbase/pocketbase`);
bot.run([`--help`]);

Got to say, its a major issue that code copied right off the README does not work. Anyway, after fixing the code, it appears pocketbase.exe downloads correctly, but the error says:

Error: Could not find pocketbase.exe anywhere in path C:\Users\toryb\AppData\Local\gobot-nodejs\Cache\pocketbase\pocketbase\archives\0.22.7\x64\win32

Which is imply not true, ls C:\Users\toryb\AppData\Local\gobot-nodejs\Cache\pocketbase\pocketbase\archives\0.22.7\x64\win32 reveals pocketbase.exe is right there in the folder.

benallfree commented 7 months ago

Thanks for the report!

I'll have a new release to test soon and could use help testing on Windows.

Closing because this has already been fixed in the next release.