benallfree / gobot

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

Alpha 34 to 36 breaks Pocketbase #8

Open VictorioBerra opened 7 months ago

VictorioBerra commented 7 months ago

Code:

import { gobot } from "gobot";
import { fileURLToPath } from "url";
import { dirname, join } from "path";

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);

const bot = await gobot(`pocketbase/pocketbase`, { version: `~0.22.7` });
bot.run([`-v`]);
bot.run([`serve`, `--dir=${join(__dirname, "pb_data")}`]);

image

Run npm i gobot@1.0.0-alpha.36

image

Broken, color output gone, URL wrong. Exact same index.js code.

benallfree commented 7 months ago

I need some help with Windows testing, do you know if there is a way to set up Docker with a windows image or would I need a license for that?

VictorioBerra commented 7 months ago

They do have Windows images https://learn.microsoft.com/en-us/virtualization/windowscontainers/manage-containers/container-base-images

How you can exec into them, I am not sure. It might be easier to use a VM and boot a Windows ISO and that way you have a full OS. You can just use the trial or whatever if you do that.

benallfree commented 7 months ago

Ok it looks like github actions also has a win image, I'm going to create some CI to help better understand cross platform issues.

VictorioBerra commented 7 months ago

@benallfree Hows it going? Anything I can help with?