-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
🌱 [WIP] Upgrade the golangci-lint #6240
Conversation
Welcome @Darshnadas! |
Hi @Darshnadas. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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. |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/ok-to-test |
/retitle 🌱 [WIP] Upgrade the golangci-lint |
Thanks for this @Darshnadas - it looks like there's a couple of small errors to fix - removing new lines from |
Sure @killianmuldoon what changes do I need to do? |
Are you able to run If you don't know what changes to make please run |
I'll run |
Hi @killianmuldoon I was not able to send you a request in slack, how can I connect to you? |
@Darshnadas let's keep it here for now. Did you run |
yes I ran |
I'm not sure what the issue is here - but the linter is showing a lot of errors that aren't on my system. Can you show the output of |
Shall I run |
Yes, please run them and let me know the output and if there are any errors. |
I ran the given two commands, pasting the output here:-
|
@Darshnadas Can you update your repo and try to run all of the commands - |
@killianmuldoon oh! okay |
@killianmuldoon I tried doing it but I got some errors, I did some googling and tried the above command, I am a beginner in git hence, I am not sure how git works.
I"ll try running the |
@Darshnadas There may be a "Fetch Upstream" button on your git repo that will automatically update your fork with the cluster api repo. It looks like this on my repo. If you press this and then run |
@killianmuldoon Understood, I did the |
@Darshnadas I think it might be better to keep most issues on github - but if you have questions you should ask generally in the cluster-api channel on Kubernetes slack. What do you think about closing this PR until you resolve some of the git issues? |
@killianmuldoon I got your point, since I am a beginner at cluster-api, I'll try asking questions in the channel itself, and for this PR I have changed the version number just, I might be able to update the repo and try running the |
@Darshnadas Sure thing - there's no major rush, I just don't want you to feel under pressure to get this done when you're starting out and learning 🙂 . I'm looking forward to seeing you in the channel! |
Thank you, will get back to you / in the channel, also if I did fetch upstream then why is it still showing this same error? any idea? |
I think the issue might be what git branch you're on when you're running If you run |
yes, this is what I did, so I need to run fetch upstream in my lint branch am I right? |
/ok-to-test |
When you run |
yes, has missing type errors also another error
I think I might have to change in image.go file something, shall I change as the error is pointing? |
There are many undefined errors coming from different files |
Now that you're on main can you try to run
The above error is the only one that I'm having. I think you can safely remove the new line - |
Okay @killianmuldoon understood |
@killianmuldoon I'll be out of town for the next 2 days, I will get back here once I run the |
hi @killianmuldoon, I ran
nd this came the output |
Also I ran |
Can you try running the following commands and pasting the commands and their output in a pastebin? Run all commands from the cluster api directory:
|
sure @killianmuldoon |
@killianmuldoon here is the Pastebin https://pastebin.com/XcuDeyGq, can you please review it? |
There seems to be a number of unrelated build errors going on here which I'm not sure how to fix. Can you try the following to be sure we've got a full clean build? git clone https://github.com/kubernetes-sigs/cluster-api
cd cluster-api
make lint
make test If the above passes without error try to update the linter version again and re-run |
okay @killianmuldoon I'll get back here once I do the above steps |
Thanks @Darshnadas! I think we should close this PR at this stage - the golangci-lint has had a couple of version bumps since this was opened and there's a new pr at #6335. Please reach out on the slack cluster-api channel so we can try to resolve your build issues though so it will be easier for you to contribute in future. |
/close |
@killianmuldoon: Closed this PR. 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. |
@killianmuldoon sure, thank you |
What this PR does / why we need it:
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Fixes #
Please have a look into this PR, as there are many things showing as unidentified. In accordance with #6163