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
add auto goimports into Makefile #182
Conversation
Signed-off-by: Yang Keao <keao.yang@yahoo.com>
Makefile
Outdated
$(GO) fmt ./... | ||
|
||
groupimports: |
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.
Did we need to install goimport first
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! Though goimports
is auto installed as golang.org/x/tools
is an indirect dependency, it's still necessary to check and install.
We should also add this into the CI test. |
Signed-off-by: Yang Keao <keao.yang@yahoo.com>
Signed-off-by: Yang Keao <keao.yang@yahoo.com>
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
Codecov Report
@@ Coverage Diff @@
## master #182 +/- ##
=========================================
Coverage ? 39.47%
=========================================
Files ? 17
Lines ? 608
Branches ? 0
=========================================
Hits ? 240
Misses ? 337
Partials ? 31 Continue to review full report at Codecov.
|
/test |
1 similar comment
/test |
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
* add auto goimports into Makefile Signed-off-by: Yang Keao <keao.yang@yahoo.com>
Signed-off-by: Yang Keao keao.yang@yahoo.com
What problem does this PR solve?
Add
goimports
command into Makefile.What is changed and how does it work?
Diff check has been added to CI to ensure every PR has been formatted and yaml has been regenerated.
Tests