numaproj / numaplane

Control Plane for Numaproj
Apache License 2.0
12 stars 1 forks source link

fix: `generate-internal-groups.sh` is deprecated. #214

Closed xdevxy closed 2 months ago

xdevxy commented 2 months ago

make codegen seeing the following errrors,

rm: cannot remove '/tmp/tmp.xFtU2ZYXQs/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.4.linux-amd64/pkg/tool/linux_amd64/cover': Permission denied
rm: cannot remove '/tmp/tmp.xFtU2ZYXQs/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.4.linux-amd64/pkg/tool/linux_amd64/vet': Permission denied
rm: cannot remove '/tmp/tmp.xFtU2ZYXQs/pkg/mod/golang.org/toolchain@v0.0.1-go1.22.4.linux-amd64/pkg/tool/linux_amd64/covdata': Permission denied

This is caused by generate-internal-groups.sh is deprecated,

github.com/numaproj/numaplane/pkg/client '' github.com/numaproj/numaplane/pkg/apis numaplane:v1alpha1 --go-header-file hack/boilerplate.go.txt
WARNING: generate-internal-groups.sh is deprecated.
WARNING: Please use k8s.io/code-generator/kube_codegen.sh instead.

Modifications

use kube_codegen.sh instead

Verification

make codegen