mirror of
https://github.com/vbatts/go-mtree.git
synced 2025-07-12 09:49:10 +00:00
*.go: update to golangci-lint, and fix everything
install tools in the workflow actions Also switch away from deprecated ioutil Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
e7a79ae8a7
commit
42b655d8ee
19 changed files with 101 additions and 78 deletions
|
@ -5,7 +5,6 @@ package xattr
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
@ -15,7 +14,7 @@ func TestXattr(t *testing.T) {
|
|||
if present == false {
|
||||
testDir = "."
|
||||
}
|
||||
fh, err := ioutil.TempFile(testDir, "xattr.")
|
||||
fh, err := os.CreateTemp(testDir, "xattr.")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
|
|
@ -5,13 +5,12 @@ package xattr
|
|||
|
||||
import (
|
||||
"bytes"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestXattrUnsupported(t *testing.T) {
|
||||
fh, err := ioutil.TempFile(".", "xattr.")
|
||||
fh, err := os.CreateTemp(".", "xattr.")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue