You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
on the git bash to exec:
$ ./generate-groups.sh all github.com/operator-crd/pkg/generated github.com/operator-crd/pkg/apis crd.example.com:v1 --go-header-file=./hack/boilerplate.go.txt
Generating deepcopy funcs
Generating clientset for crd.example.com:v1 at github.com/operator-crd/pkg/generated/clientset
F1218 17:09:20.401085 52588 main.go:62] Error: Failed executing generator: some packages had errors:
errors in package "github.com\operator-crd\pkg\generated\clientset\versioned":
unable to format file "D:\workspace\go_learn\src\github.com\operator-crd\pkg\generated\clientset\versioned\clientset.go" (23:20: unknown escape sequence (and 4 more errors)).
errors in package "github.com\operator-crd\pkg\generated\clientset\versioned\fake":
unable to format file "D:\workspace\go_learn\src\github.com\operator-crd\pkg\generated\clientset\versioned\fake\clientset_generated.go" (23:24: unknown escape sequence (and 13 more errors)).
paltform:windows10,go v1.23.4,git
projetct structure:
/d/test_go_learn/
├── code-generator/
│ ├── generate-groups.sh
│ ├── hack/
│ │ └── boilerplate.go.txt
│ └── vendor/
├── operator-crd/
│ ├── pkg/
│ │ ├── generated/
│ │ └── apis/
│ └── go.mod
on the git bash to exec:
$ ./generate-groups.sh all github.com/operator-crd/pkg/generated github.com/operator-crd/pkg/apis crd.example.com:v1 --go-header-file=./hack/boilerplate.go.txt
Generating deepcopy funcs
Generating clientset for crd.example.com:v1 at github.com/operator-crd/pkg/generated/clientset
F1218 17:09:20.401085 52588 main.go:62] Error: Failed executing generator: some packages had errors:
errors in package "github.com\operator-crd\pkg\generated\clientset\versioned":
unable to format file "D:\workspace\go_learn\src\github.com\operator-crd\pkg\generated\clientset\versioned\clientset.go" (23:20: unknown escape sequence (and 4 more errors)).
errors in package "github.com\operator-crd\pkg\generated\clientset\versioned\fake":
unable to format file "D:\workspace\go_learn\src\github.com\operator-crd\pkg\generated\clientset\versioned\fake\clientset_generated.go" (23:24: unknown escape sequence (and 13 more errors)).
goroutine 1 [running]:
k8s.io/klog/v2.stacks(0x1)
D:/workspace/go_learn/pkg/mod/k8s.io/klog/[email protected]/klog.go:1038 +0x85
k8s.io/klog/v2.(*loggingT).output(0x12d9520, 0x3, 0x0, 0xc000090e00, 0x0, {0x110561a?, 0x1?}, 0xc000096f80?, 0x0)
D:/workspace/go_learn/pkg/mod/k8s.io/klog/[email protected]/klog.go:987 +0x60f
k8s.io/klog/v2.(*loggingT).printf(0x12d9520, 0x3, 0x0, {0x0, 0x0}, {0xfbcfa8, 0x9}, {0xc000096f80, 0x1, 0x1})
D:/workspace/go_learn/pkg/mod/k8s.io/klog/[email protected]/klog.go:753 +0x1c7
k8s.io/klog/v2.Fatalf(...)
D:/workspace/go_learn/pkg/mod/k8s.io/klog/[email protected]/klog.go:1532
main.main()
D:/test_go_learn/code-generator/cmd/client-gen/main.go:62 +0x345
goroutine 6 [chan receive]:
k8s.io/klog/v2.(*loggingT).flushDaemon(0x12d9520)
D:/workspace/go_learn/pkg/mod/k8s.io/klog/[email protected]/klog.go:1181 +0x66
created by k8s.io/klog/v2.init.0 in goroutine 1
D:/workspace/go_learn/pkg/mod/k8s.io/klog/[email protected]/klog.go:420 +0xcf
XXXX@CLM-0073 MINGW64 /d/test_go_learn/code-generator ((kubernetes-1.23.5))
$ sh -x ./generate-groups.sh all github.com/operator-crd/pkg/generated github.com/operator-crd/pkg/apis crd.example.com:v1 --go-header-file=./hack/boilerplate.go.txt
++ dirname ./generate-groups.sh
++ go env GOBIN
++ go env GOPATH
./generate-groups.sh: line 59: `codegen::join': not a valid identifier
The text was updated successfully, but these errors were encountered: