netbird icon indicating copy to clipboard operation
netbird copied to clipboard

Re-enable SA1019 check on golangci-lint

Open mlsmaycon opened this issue 3 years ago • 0 comments

latest versions of the lint tool complains about the following:

util/file.go:6: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"
        ^
management/server/management_test.go:5: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"
        ^
client/cmd/root.go:9: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)

This is related to go's version update in the tools cache.

We should fix the warnings and remove the exclusion flag from the workflow file

mlsmaycon avatar Aug 16 '22 17:08 mlsmaycon