aptible / supercronic

Cron for containers
MIT License
1.84k stars 112 forks source link

Release a Windows build #102

Open giggio opened 2 years ago

giggio commented 2 years ago

It would be cool if you would release Windows binaries, too. I'm not a Gopher, but I believe you can cross compile it, right? I'm not sure how hard it would be.

neurosnap commented 2 years ago

Thanks for submitting this issue! I looked into seeing if our build worked by targeting windows and unfortunately there's at least one issue that is not straightforward:

cron/cron.go:73:41: unknown field 'Setpgid' in struct literal of type syscall.SysProcAttr

https://github.com/aptible/supercronic/blob/298ae31302750ced7837fbb65f428df985010f5a/cron/cron.go#L73

I found a reference to this issue on GH but CreationFlags doesn't exist so I'm assuming there's more to this:

I'd be happy to accept a PR for supporting windows.