Skip to content
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

Cannot build on osx due to Sysinfo_t being used in uptime. #7

Open
ehiggs opened this issue May 10, 2021 · 3 comments
Open

Cannot build on osx due to Sysinfo_t being used in uptime. #7

ehiggs opened this issue May 10, 2021 · 3 comments

Comments

@ehiggs
Copy link

ehiggs commented May 10, 2021

# github.com/nelkinda/health-go/checks/uptime
../../../../pkg/mod/github.com/nelkinda/health-go@v0.0.1/checks/uptime/system.go:15:9: undefined: syscall.Sysinfo_t
../../../../pkg/mod/github.com/nelkinda/health-go@v0.0.1/checks/uptime/system.go:16:9: undefined: syscall.Sysinfo
@christianhujer
Copy link
Member

Do you have any suggestion for an alternative, or would you prefer this to simply be disabled on Mac OS X for the time being?

@CalebRose
Copy link

Having the same issue using this, but on Windows 10

@ehiggs
Copy link
Author

ehiggs commented Nov 12, 2021

syscall package is deprecated, so x/sys/unix for Linux/Macos, and s/sys/windows for Windows; but I don't know what functions you need in Windows. @CalebRose do you know?

More info on the deprecation

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants