vmware-archive/kubewatch

Kubewatch build failing with GO 1.14.5

Closed this issue · 6 comments

While following steps to install go packager as mentioned in https://github.com/bitnami-labs/kubewatch#using-go-package-installer, Kubewatch build is failing.

[devac01:/home/users/ashish]$ go version
go version go1.14.5 linux/amd64
[devac01:/home/users/ashish]$ go get -u github.com/bitnami-labs/kubewatch
# runtime
/usr/local/go/src/runtime/lockrank_off.go:22:2: undefined: lock2
/usr/local/go/src/runtime/lockrank_off.go:29:2: undefined: unlock2_

I have tried go versions 1.14, 1.15.1, and 1.14.5

Is there anything I am missing?

mkmik commented

I have tried go versions 1.14, 1.15.1, and 1.14.5

Does it only fail on 1.14.5 and works on the other two versions?

It's not working on any of the 3 versions mentioned.

Tried using steps mentioned in https://github.com/bitnami-labs/kubewatch#using-go . Still the same issue.

[devac01:/usr/local/go/src/github.com/bitnami-labs/kubewatch]# go version                                                      
warning: GOPATH set to GOROOT (/usr/local/go) has no effect                                                                                 
go version go1.14.5 linux/amd64  

[devac01:/usr/local/go/src/github.com/bitnami-labs/kubewatch]# go build -o kubewatch main.go                                   
warning: GOPATH set to GOROOT (/usr/local/go) has no effect                                                                                 
# runtime                                                                                                                                   
../../../runtime/lockrank_off.go:22:2: undefined: lock2                                                                                     
../../../runtime/lockrank_off.go:29:2: undefined: unlock2    
mkmik commented

can you build anything else with those toolchains?

This error message

/usr/local/go/src/runtime/lockrank_off.go:22:2: undefined: lock2
/usr/local/go/src/runtime/lockrank_off.go:29:2: undefined: unlock2_

implies there is a problem with your Go toolchain installation. How did you install it?

mkmik commented

that said; kubewatch no uses go modules, so you no longer have to check the repo out in the GOPATH

just do:

$ git clone https://github.com/bitnami-labs/kubewatch.git
$ cd kubewatch
$ go build

(readme updated)

The above steps helped me. Thanks