Skip to content
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

Fix "cannot range over" local lint errors #126

Merged
merged 2 commits into from
Dec 5, 2024

Conversation

mpryc
Copy link
Collaborator

@mpryc mpryc commented Dec 5, 2024

Fix for the "cannot range over" that bumps the golang-ci version Makes simila range loop in the nab controller.

Why the changes were made

To fix local $ make lint errors introduced with #122

New version of golang-ci is fixing the issue on local ran.

How to test the changes made

ran the lint after change, no error appeared.

This PR is similar to #124, but uses different approach, so one or other should be merged.

Fix for the "cannot range over" that bumps the golang-ci version
Makes simila range loop in the nab controller.

Signed-off-by: Michal Pryc <[email protected]>
@mpryc
Copy link
Collaborator Author

mpryc commented Dec 5, 2024

@kaovilai FYI

mateusoliveira43

This comment was marked as resolved.

kaovilai
kaovilai previously approved these changes Dec 5, 2024
Updates the link to the used documentation reference

Signed-off-by: Michal Pryc <[email protected]>
@kaovilai
Copy link
Member

kaovilai commented Dec 5, 2024

Why did I not have issue with 1.56.2 tho.. 🤷

#124 (review)

Copy link

openshift-ci bot commented Dec 5, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kaovilai, mateusoliveira43, mpryc

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:
  • OWNERS [kaovilai,mateusoliveira43,mpryc]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mateusoliveira43
Copy link
Contributor

@kaovilai #124 (comment)

Michal's executable was built with go 1.21, mine and yours with 1.22

@kaovilai
Copy link
Member

kaovilai commented Dec 5, 2024

Too bad.. I think you should avoid using go install for linters.. that would solve this issue . That meant this PR is no-op.

@kaovilai
Copy link
Member

kaovilai commented Dec 5, 2024

perhaps the makefile should set GOTOOLCHAIN, and only then can the make lint be reliable since it would be building CLIs with the right version on all env CI and local :D

https://go.dev/doc/toolchain

@kaovilai
Copy link
Member

kaovilai commented Dec 5, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Dec 5, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit ca7e290 into migtools:master Dec 5, 2024
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants