ahmetb / kubectx

Faster way to switch between clusters and namespaces in kubectl
https://kubectx.dev
Apache License 2.0
17.66k stars 1.26k forks source link

failing to build on aarch64-darwin #359

Closed shmish111 closed 2 years ago

shmish111 commented 2 years ago

I've opened https://github.com/NixOS/nixpkgs/issues/182108 in the nixpkgs repo but if you know nothing about nix I still think you might be able to help with the issue here:

# golang.org/x/sys/unix
vendor/golang.org/x/sys/unix/syscall_darwin.1_13.go:29:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.go:27:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.1_13.go:40:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:28:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:43:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:59:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:75:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:90:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:105:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:121:3: //go:linkname must refer to declared function or variable
vendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go:121:3: too many errors

I guess maybe it's some library that needs a different version or something, any help would be appreciated.

aw185176 commented 2 years ago

I get the same error on x86_64 as well, FWIW

ahmetb commented 2 years ago

We don't use vendor/ directory so I'm not sure where that's coming from. I also don't know who packaged this for Nix (I have no knowledge of nix) but perhaps it can be solved by updating the dependencies.

This issue suggests it was a Go bug https://github.com/golang/go/issues/51706 and https://github.com/golang/go/issues/49219. So consider updating the nix package to use newer Go.