nelkinda / health-go

A golang implementation of the upcoming IETF RFC Health Check Response Format for HTTP APIs
MIT License
34 stars 7 forks source link

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

Open ehiggs opened 3 years ago

ehiggs commented 3 years ago
# 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 commented 3 years ago

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 commented 3 years ago

Having the same issue using this, but on Windows 10

ehiggs commented 3 years ago

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