-
-
Notifications
You must be signed in to change notification settings - Fork 2k
chore(dep): remove go:generate dependencies from go.mod #2982
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
chore(dep): remove go:generate dependencies from go.mod #2982
Conversation
|
Cc: @tuunit as you authored oauth2-proxy/tools#4 |
tuunit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dolmen looks amazing!
Please add an CHANGELOG.md entry 😄 and then we are good to merge.
66835f7 to
59cad2c
Compare
Remove github.com/oauth2-proxy/tools/reference-gen from dependencies. Instead we are now running it with "go run" with a version suffix. Long version: - github.com/oauth2-proxy/tools/reference-gen is removed from tools/tool/go - in pkg/apis/options/doc.go we now run reference-run with a version suffix (go run package@version) with the version comming from go.mod. - the "//go:generate" line is split in 2 lines (using the -command flag) for readability - "go mod tidy" for cleaning dependencies from go.mod, go.sum Note: we are not upgrading reference-gen here. That will be a further separate change.
59cad2c to
8e951ab
Compare
@tuunit Done! |
tuunit
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Remove
github.com/oauth2-proxy/tools/reference-genfrom dependencies. Instead we are now running it with "go run" with a version suffix.Description
github.com/oauth2-proxy/tools/reference-genis removed from tools/tool.gopkg/apis/options/doc.gowe now run reference-run with a version suffix (go run package@version) with the version comming fromgo.mod.//go:generateline is split in 2 lines (using the-commandflag) for readabilitygo mod tidyfor cleaning dependencies fromgo.mod,go.sumNotes:
Motivation and Context
Cleanup dependencies from go.mod which are used only for development.
How Has This Been Tested?
=> no change in code generation
Checklist: