mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-12 06:27:07 +08:00
history: add history import command
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
21
util/desktop/paths_linux.go
Normal file
21
util/desktop/paths_linux.go
Normal file
@ -0,0 +1,21 @@
|
||||
package desktop
|
||||
|
||||
import (
|
||||
"os"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
const (
|
||||
socketName = "docker-desktop-build.sock"
|
||||
socketPath = ".docker/desktop"
|
||||
)
|
||||
|
||||
func BuildServerAddr() (string, error) {
|
||||
dir, err := os.UserHomeDir()
|
||||
if err != nil {
|
||||
return "", errors.Wrap(err, "failed to get user home directory")
|
||||
}
|
||||
return "unix://" + filepath.Join(dir, socketPath, socketName), nil
|
||||
}
|
Reference in New Issue
Block a user