-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow compiling and running the project on macOS and windows #1421
Comments
Thanks for the PR. There was a broken import in it, which I've fixed and merged in a separate commit. |
Ah sorry, there were two places where
Second place is still blocking compilation on macos/win. |
hello, @knadh syscall is still blocking the compilation for mac OSX.
this is the place where system about info is getting initialized in |
Had to get rid of the field altogether! 104c4fc |
Thank you! |
Hi, I'm trying to run the project locally, on macos, and I'm having trouble.
To reproduce my problem, you can try compiling the project for macos/windows:
uname
syscall is only available for linux in golang. This code does not compile on macos/windows:listmonk/cmd/init.go
Lines 703 to 714 in a440b79
A more portable way to write that bit of code is to use
Utsname
andUname
from thegolang.org/x/sys/unix
package, but that does not work for windows.The text was updated successfully, but these errors were encountered: