kyma-project / cloud-manager

Apache License 2.0
3 stars 14 forks source link

cloud-manager build on linux with go 1.22.x fails #422

Open ravi-shankar-sap opened 2 months ago

ravi-shankar-sap commented 2 months ago

Description Cloud manager build in linux with go1.22.x fails.

Expected result

build should be successful

Actual result

build fails with the following error: I552144@fips-test:~/work/cloud-manager$ make build /home/I552144/work/cloud-manager/bin/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=0xb8258f]

Steps to reproduce build in linux env with go 1.22

Troubleshooting

The problem was caused by the controller-gen@v0.13.0. Updating it to v0.14.0 fixes the issue.