Closed GeekenDev closed 7 months ago
Hmm, right, this is not the first time it happens. We may need to move the CPU stats helpers to a separate package to avoid cgo requirement for the main protocol package.
This has to be fastest response, commit, and PR i've ever seen. Gracias @dennwc 😎
@GeekenDev You're welcome! Until we tag the next release update your go.mod
:
github.com/livekit/protocol 4d22b4ce36d213847a65521e4a17bbd0ff56ffc8
Plus go mod tidy
and it should do the trick. Let us know if there are other similar issues.
Dependency: https://github.com/mackerelio/go-osstat
My machine: Darwin amd64 - (MacOS - 14.2.1) Go Version: (go1.22.1 darwin/amd64)
I did some digging and it states CPU support on darwin requires cgo. Is there anything special I need to be doing to source the necessary dependency? Screenshots below. (*1: unavailable without cgo)
My project that imports resources from this repo:
The source file in question from this repo:
The imports inside of my project: