Skip to content

[Bug] I cannot build Uniffle operator with Go with version later than 1.19 #2722

@eolivelli

Description

@eolivelli

Code of Conduct

Search before asking

  • I have searched in the issues and found no similar issues.

Describe the bug

I have cloned the repository and I wanted to deploy Uniffle on Kubernetes.
I tried to build the operator, but in my Ubuntu box I have go 1.25 (latest).

The workaround is to downgrade Go to 1.19.
One problem is that 1.19 is so old that brew and other tools don't allow to install it easily (I had to go in the Archives and down load the old version)

./build-operator.sh 
Build and Test kubernetes operator...
./hack/update-codegen.sh
Generating deepcopy funcs
Generating clientset for uniffle:v1alpha1 at github.com/apache/incubator-uniffle/deploy/kubernetes/operator/pkg/generated/clientset
Generating listers for uniffle:v1alpha1 at github.com/apache/incubator-uniffle/deploy/kubernetes/operator/pkg/generated/listers
Generating informers for uniffle:v1alpha1 at github.com/apache/incubator-uniffle/deploy/kubernetes/operator/pkg/generated/informers
/home/eolivelli/dev/uniffle/uniffle/deploy/kubernetes/operator/local/controller-gen rbac:roleName=manager-role crd webhook paths="./..." output:crd:artifacts:config=config/crd/bases
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xa0b7af]

goroutine 188 [running]:
go/types.(*Checker).handleBailout(0xc0001a3800, 0xc001bcfd40)
	/usr/lib/go-1.22/src/go/types/check.go:367 +0x88
panic({0xbc51a0?, 0x12b0ca0?})
	/usr/lib/go-1.22/src/runtime/panic.go:770 +0x132
go/types.(*StdSizes).Sizeof(0x0, {0xdc0078, 0x12b94c0})

Affects Version(s)

0.10.0

Uniffle Server Log Output

Uniffle Engine Log Output

Uniffle Server Configurations

Uniffle Engine Configurations

Additional context

No response

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions