-
Notifications
You must be signed in to change notification settings - Fork 406
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
deepcopy-gen
relative output without symlinks
#133
Comments
/sig api-machinery |
deepcopy-gen
output w/in Go modules projectdeepcopy-gen
relative output without symlinks
/cc @jpbetz |
I have some local changes to gengo (used by code-generator) that enables (hopefully) all generators to output files while stripping a base path prefix from the output path. For example, if your project is I'd also considered doing something like Will open a PR shortly for what I currently have. |
/assign |
/lifecycle active |
Sorry it took so long - just opened a PR for this in Kubernetes. |
deepcopy-gen
currently writes output exclusively to theGOPATH
. In kubernetes, a local go tree structure is created and symlinked to the working directory. It would be nice if this symlinking was not necessary for correct placement of the generated files.An additional argument might look like:
deepcopy-gen -i github.com/austince/apiserver/apis/v1 \ -O zz_generated.deepcopy \ -o . \ --pkg-mappings github.com/austince/apiserver=./apiserver
where we could map package roots to directories relative to the
-o
input, so the outputgithub.com/austince/apiserver/apis/v1/zz_generated.deepcopy.go
would be written to./apiserver/apis/v1/zz_generated.deepcopy.go
.The text was updated successfully, but these errors were encountered: