aristanetworks / goarista

Fairly general building blocks used in Arista Go code and open-sourced for the benefit of all.
Apache License 2.0
213 stars 68 forks source link

gNMI build fails #28

Closed fowie closed 6 years ago

fowie commented 6 years ago

New Go installation: go version go1.11.1 windows/amd64

C:\%GOPATH%>go get github.com/aristanetworks/goarista/cmd/gnmi

github.com/aristanetworks/goarista/netns

src\github.com\aristanetworks\goarista\netns\netns.go:35:17: undefined: getNs src\github.com\aristanetworks\goarista\netns\netns.go:39:8: undefined: setNs src\github.com\aristanetworks\goarista\netns\netns_110.go:34:19: undefined: getNs src\github.com\aristanetworks\goarista\netns\netns_110.go:54:11: undefined: setNs

aaronbee commented 6 years ago

It looks to me like you are on a Windows machine. Is that correct?

Unfortunately, it looks like you can only build gNMI for linux or macOS. Let me see if I can restructure the code so that we can enable building a Windows binary.

aaronbee commented 6 years ago

Sorry, you did mention your platform is windows/amd64.

aaronbee commented 6 years ago

@fowie This should be fixed now. Thanks for the issue! https://github.com/aristanetworks/goarista/commit/5bb443fba8e05f4a819301a63af91fe3cbadcc17