github.com/khulnasoft/cli@v0.0.0-20240402070845-01bcad7beefa/cli-plugins/socket/socket_noabstract.go (about) 1 //go:build !windows && !linux 2 3 package socket 4 5 import ( 6 "os" 7 "path/filepath" 8 ) 9 10 func socketName(basename string) string { 11 // Because abstract sockets are unavailable, use a socket path in the 12 // system temporary directory. 13 return filepath.Join(os.TempDir(), basename) 14 }