-
Notifications
You must be signed in to change notification settings - Fork 16
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
Clean up godoc representation of packages and document code gen tool #35
base: main
Are you sure you want to change the base?
Conversation
❕ Build Aborted
Expand to view the summary
Build stats
Steps errors
Expand to view the steps failures
|
6089fc8
to
7692c18
Compare
github.com/urso/mktmpl v0.0.0-20180112143305-7705185786e8 // indirect | ||
golang.org/x/tools v0.1.5 // indirect | ||
gopkg.in/yaml.v2 v2.4.0 // indirect | ||
) |
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.
I presume most of these dependencies are introduced by the mktmpl tool.
For tools I would prefer to bingo approach instead of 'polluting' the go.mod file.
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.
Yes, that's why they're there. I'm not convinced by the claims made by bingo, but is there anything that you would like me to do with this? Either I should add a tools.go to make the changes to go.mod stable, or I can try bingo.
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.
Let's add a tools.go
to stabilize go.mod. Thanks
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.
Done.
All in all the change looks good to me. Thanks for contributing clean ups. Very much appreciated. I'm just not a fan of polluting go.mod with tool dependencies. Maybe we want to give 'bingo' a try. |
|
||
package gotype | ||
|
||
import _ "github.com/urso/mktmpl" |
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.
a blank import should be only in a main or test package, or have a comment justifying it
|
||
package gotype | ||
|
||
import _ "github.com/urso/mktmpl" |
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.
a blank import should be only in a main or test package, or have a comment justifying it
/test |
Please take a look.
To demonstrate what is being fixed, visit https://pkg.go.dev/github.com/elastic/[email protected]/gotype. This also makes generation consistent by including the generator in the mod files and fixes imports.
It looks like the code gen does not automatically place the copyright headers. If you point me to where this is done I will fix that. Thanks.Fixed