Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

failed generating in window: unknown escape sequence #264

Closed
MrPluto0 opened this issue Mar 21, 2024 · 3 comments
Closed

failed generating in window: unknown escape sequence #264

MrPluto0 opened this issue Mar 21, 2024 · 3 comments

Comments

@MrPluto0
Copy link

> 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
Copy link
Contributor

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
Copy link
Contributor

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

@MrPluto0
Copy link
Author

Yes, i tried in linux, it works.

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants