-
Notifications
You must be signed in to change notification settings - Fork 71
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(ci/lint): fix failing lint checks #212
Conversation
Signed-off-by: pk-218 <53428217+pk-218@users.noreply.github.com>
Yay, your first pull request! 👍 A contributor will be by to give feedback soon. In the meantime, please review the Layer5 Community Welcome Guide and sure to join the community Slack. |
That's strange. When I used act to run the CI locally, I found no issues. |
Maybe it has improved. I never really had any luck with act. |
If not |
Signed-off-by: pk-218 <53428217+pk-218@users.noreply.github.com>
I personally use |
files := make([]fs.FileInfo, 0, len(entries)) | ||
for _, entry := range entries { | ||
file, err := entry.Info() | ||
if err != nil { | ||
return err | ||
} | ||
files = append(files, 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.
@pk-218 what's the need for this? Is this part of lint failures? 🤔
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.
The lint checks were failing here since ioutil.ReadDir
is deprecated
As per the documentation, the replacement is os.ReadDir
but there is a change in the method return value. Hence, to accommodate the changes, I had to add this code.
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.
Ohh I see.
Same, that's how I can catch and fix these failing lint checks xD |
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
Thanks @pk-218 for looking through this.
Signed-off-by: pk-218 53428217+pk-218@users.noreply.github.com
Description
This PR fixes #203
Notes for Reviewers
Signed commits