client-go
client-go copied to clipboard
client-go dependency download with go build is failing in s390x build
version k8s.io/client-go v0.28.2 and v0.27.x go version - Tried on 1.19 and 1.20
Error
go: downloading github.com/emicklei/go-restful/v3 v3.9.0
/go/pkg/mod/k8s.io/[email protected]/plugin/pkg/client/auth/exec/exec.go:48:2: //go:build comment without // +build comment
/go/pkg/mod/sigs.k8s.io/[email protected]/json.go:24:2: //go:build comment without // +build comment
make: *** [Makefile:227: build-provisioner-binary] Error 1
Solutions tried but not worked -
- Update client-go version to 0.28.x
- Try with go 1.19, 1.20
-
go fix && go fmt
- download deps as
go mod vendor
and modify the affected file locally and build.
Whereas the same works fine with linux-amd64 architecture.
We are blocked on linux-s390x support as of now with this issue.