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

[BUG] Go build with error for SA1019: "io/ioutil" has been deprecated since Go 1.16 #705

Closed
denverdino opened this issue Oct 17, 2022 · 0 comments · Fixed by #706
Closed
Labels
kind/bug Create a report to help us improve

Comments

@denverdino
Copy link
Contributor

What happened:

$ make build
...
pkg/util/system/system_file.go:21:2: SA1019: "io/ioutil" has been deprecated since Go 1.16: 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)
	"io/ioutil"
	^
INFO File cache stats: 1 entries of total size 2.5KiB
INFO Memory: 17 samples, avg is 58.5MB, max is 95.8MB
INFO Execution took 1.559056333s
make: *** [lint-go] Error 1

What you expected to happen:

No error

How to reproduce it (as minimally and precisely as possible):

$ make build

Anything else we need to know?:

Environment:

  • Go version: go1.19.2 darwin/arm64
@denverdino denverdino added the kind/bug Create a report to help us improve label Oct 17, 2022
koordinator-bot bot pushed a commit that referenced this issue Oct 17, 2022
Signed-off-by: denverdino <denverdino@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Create a report to help us improve
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant