-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Goimports error in Travis #1303
Comments
#1186 and #1252 do modify that file and #1186 doesn't even touch the import section. Additionally, #1248 and #1265 do not modify that file at all, so the error doesn't seem to be related to anything done in those PR. The check has been introduced in #1292 and #1198 is the only thing that was merged into master between #1292 branch start and its merge. I have tried to run @camilamacedo86 Could you please have a look at this as my linter is warning about less things than yours? |
The error faced is: Note that you can use the lint to fix it automatically by adding the flag fix as follows and the running the lint target |
Why does it need to use |
Hi @Adirio the lint checks are usually based in good practices. I understand that it is suggesting to add the alias in order to make implicit that it came from v2 and not another version. However, I did not check it further. Please, feel free to look for its explanation in its doc and implementation which is here: https://godoc.org/github.com/Go-zh/tools/cmd/goimports. |
Hi @Adirio, It is fixed. Could we close this one? If not, what is missing to address here? |
Travis is failing several PR due to a
goimports
linting error. The error message is:Affected PR:
/kind bug
The text was updated successfully, but these errors were encountered: