Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ require (
github.com/knqyf263/go-rpm-version v0.0.0-20240918084003-2afd7dc6a38f
github.com/kotakanbe/go-pingscanner v0.1.1-0.20250508035118-693281234a8e
github.com/kotakanbe/logrus-prefixed-formatter v0.0.0-20180123152602-928f7356cb96
github.com/mitchellh/go-homedir v1.1.0
github.com/nlopes/slack v0.6.0
github.com/olekukonko/tablewriter v1.1.4
github.com/package-url/packageurl-go v0.1.5
Expand Down Expand Up @@ -248,6 +247,7 @@ require (
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
github.com/mitchellh/colorstring v0.0.0-20190213212951-d06e56a500db // indirect
github.com/mitchellh/copystructure v1.2.0 // indirect
github.com/mitchellh/go-homedir v1.1.0 // indirect
github.com/mitchellh/go-wordwrap v1.0.1 // indirect
github.com/mitchellh/hashstructure/v2 v2.0.2 // indirect
github.com/mitchellh/reflectwalk v1.0.2 // indirect
Expand Down
4 changes: 2 additions & 2 deletions scanner/executil.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"hash/fnv"
"io"
"os"
ex "os/exec"
"path/filepath"
"runtime"
Expand All @@ -13,7 +14,6 @@ import (
"syscall"
"time"

homedir "github.com/mitchellh/go-homedir"
"github.com/saintfish/chardet"
"golang.org/x/text/encoding/japanese"
"golang.org/x/text/encoding/unicode"
Expand Down Expand Up @@ -205,7 +205,7 @@ func sshExecExternal(c config.ServerInfo, cmdstr string, sudo bool) (result exec
"-o", "ConnectTimeout=10",
)
if runtime.GOOS != "windows" {
home, err := homedir.Dir()
home, err := os.UserHomeDir()
if err != nil {
msg := fmt.Sprintf("Failed to get HOME directory: %s", err)
result.Stderr = msg
Expand Down
4 changes: 1 addition & 3 deletions subcmds/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,10 @@ package subcmds
import (
"os"
"path/filepath"

homedir "github.com/mitchellh/go-homedir"
)

func mkdirDotVuls() error {
home, err := homedir.Dir()
home, err := os.UserHomeDir()
if err != nil {
return err
}
Expand Down
Loading