-
Notifications
You must be signed in to change notification settings - Fork 39.3k
-
Notifications
You must be signed in to change notification settings - Fork 39.3k
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
k8s.io/code-generator
scripts do not work from repos that use new Go modules
#67566
Comments
Another sidenote - seems like output and input prefixes for these generators hardcode |
/remove-kind bug thx for reporting. at least for now plz manage dependencies by godep.
i'm afraid release-1.12 won't provide support for golang-1.11 features but it sounds good. hopefully we'll consider it in the next release. 😉 |
/cc @sttts |
We need to figure out a module strategy for the whole project. See: #63607 I won't mark this a duplicate because it's targeted at a specific subset of the problem. |
@sgnn7 is there a workaround you know of for using code-generator tools in a go mod project? |
@perryao Yes but it requires a few changes and all the changes are out-of-tree. You can see how we use this here. Sadly my PRs for getting some of this in-tree have either been closed or struck in review. Let me know if you have any questions. |
Issues go stale after 90d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Stale issues rot after 30d of inactivity. If this issue is safe to close now please do so with Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen Is this supported yet, and if so, is there any documentation on how to use the new functionality? Linking here before closing would be of great help to the community. |
@gdoctor: You can't reopen an issue/PR unless you authored it or you are a collaborator. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen This still isn't addressed. |
@kragniz: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Rotten issues close after 30d of inactivity. Send feedback to sig-testing, kubernetes/test-infra and/or fejta. |
@fejta-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
FYI the way to use code-generator right now is: https://github.com/kubernetes/sample-apiserver/#when-using-go-111-modules |
I have no success with |
@nikhita has the way to use |
When invoking generate-groups.sh from a repo that uses the new Golang v1.11 modules, none of the codegens work as they assume that the repo layout has the code in
$GOPATH/src/k8s.io/code-generator
and that dependencies have been downloaded for this project (not doable usinggo mod
easily).Steps to reproduce:
Changing the executable flag doesn't help as the script goes into that directory and runs
go install
which in this case cannot complete due to this module not having installable dependencies withgo mod
:It seems that this can get further (until full go modules support) by adding a
go.mod
to the base of this repo and making the script executable but even then, the pathing is broken in these:/kind bug
/sig api-machinery
The text was updated successfully, but these errors were encountered: