client-go icon indicating copy to clipboard operation
client-go copied to clipboard

client-go dependency download with go build is failing in s390x build

Open Bhagyashreek8 opened this issue 1 year ago • 2 comments

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 -

  1. Update client-go version to 0.28.x
  2. Try with go 1.19, 1.20
  3. go fix && go fmt
  4. download deps as go mod vendor and modify the affected file locally and build.
Screenshot 2023-10-03 at 8 29 29 PM

Whereas the same works fine with linux-amd64 architecture.

We are blocked on linux-s390x support as of now with this issue.

Bhagyashreek8 avatar Oct 03 '23 15:10 Bhagyashreek8