kubernetes-client / gen

Common generator scripts for all client libraries
Apache License 2.0
148 stars 146 forks source link

failed generating in window: unknown escape sequence #264

Closed MrPluto0 closed 4 months ago

MrPluto0 commented 6 months ago
> client-gen --input-base="kubevirt.io/api/" --input="core/v1" --output-package="testapi/client" --output-base="./" --clientset-name="versioned" --go-header-file boilerplate.go.txt

F0322 00:21:59.359523    8124 main.go:61] Error: Failed executing generator: some packages had errors:
errors in package "testapi\\client\\versioned":
unable to format file "testapi\\client\\versioned\\clientset.go" (7:18: unknown escape sequence (and 1 more errors)).

errors in package "testapi\\client\\versioned\\fake":
unable to format file "testapi\\client\\versioned\\fake\\clientset_generated.go" (9:18: unknown escape sequence (and 4 more errors)).

but it can be used in linux

brendandburns commented 6 months ago

I don't know that this has ever been tested on Windows. If you want to make it work, I'd recommend WSL (Windows Subsystem for Linux)

brendandburns commented 6 months ago

Or if you manage to get it working, we'd take a PR with fixes.

MrPluto0 commented 4 months ago

Yes, i tried in linux, it works.

Thank you!