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

Replace deprecated ioutil usage #2181

Merged
merged 1 commit into from
Aug 24, 2024
Merged

Replace deprecated ioutil usage #2181

merged 1 commit into from
Aug 24, 2024

Conversation

nirs
Copy link
Contributor

@nirs nirs commented Aug 24, 2024

Fixing golangci-lint errors[1]:

Error: SA1019: "io/ioutil" has been deprecated since Go 1.19: As of
Go 1.16, the same functionality is now provided by package [io] or
package [os], and those implementations should be preferred in new
code. See the specific function documentation for details.
(staticcheck)

[1] https://github.com/spf13/cobra/actions/runs/10535452454/job/29194442289?pr=2180

Fixing golangci-lint errors[1]:

    Error: SA1019: "io/ioutil" has been deprecated since Go 1.19: As of
    Go 1.16, the same functionality is now provided by package [io] or
    package [os], and those implementations should be preferred in new
    code. See the specific function documentation for details.
    (staticcheck)

[1] https://github.com/spf13/cobra/actions/runs/10535452454/job/29194442289?pr=2180
@github-actions github-actions bot added the area/docs-generation Generation of docs via Cobra label Aug 24, 2024
Copy link
Collaborator

@marckhouzam marckhouzam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@marckhouzam marckhouzam merged commit 511af59 into spf13:main Aug 24, 2024
18 checks passed
@marckhouzam marckhouzam added this to the 1.9.0 milestone Aug 24, 2024
@marckhouzam marckhouzam added the kind/cleanup General cleanup of code, issues, etc. label Aug 24, 2024
@nirs nirs deleted the lint-ioutil branch August 24, 2024 13:15
@marckhouzam marckhouzam modified the milestones: 1.8.1, 1.9.0 Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/docs-generation Generation of docs via Cobra kind/cleanup General cleanup of code, issues, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants