I can't for the life of me figure out why this is doing this. Another guy claims this works for him and that I have an environment issue. Yet every other dozen projects are working fine for me.
So just for the fun of it I started out with a completely pristine go environment. (rm -rf ~/go)
There is no go.mod/go.sum file. No other repos. No extraneous files or any kind laying around. Absolutely nothing in my go path other than my cloned repo.
I clone my repo and then with go modules enabled, "go get k8s.io/code-generator" and I get this error every time:
package k8s.io/code-generator: build constraints exclude all Go files in /Users/me/go/pkg/mod/k8s.io/code-generator@v0.0.0-20190813220511-4e023f69fd57
So then I repeat the above test this time with a go.mod file specifying the k8s.io/code-generator version this requires (1.13.1). Same error.
Anyone have any idea what the deal is here? My suspicion is this is a macOS related issue or something.