package appdefaults

const (
	Address   = "npipe:////./pipe/buildkitd"
	Root      = ".buildstate"
	ConfigDir = ""
)

func UserAddress() string {
	return Address
}

func EnsureUserAddressDir() error {
	return nil
}

func UserRoot() string {
	return Root
}

func UserConfigDir() string {
	return ConfigDir
}

package appdefaults

import (
	"os"
	"path/filepath"
)

const (
	Address = "npipe:////./pipe/buildkitd"
)

var (
	Root      = filepath.Join(os.Getenv("ProgramData"), "buildkitd", ".buildstate")
	ConfigDir = filepath.Join(os.Getenv("ProgramData"), "buildkitd")
)

func UserAddress() string {
	return Address
}

func EnsureUserAddressDir() error {
	return nil
}

func UserRoot() string {
	return Root
}

func UserConfigDir() string {
	return ConfigDir
}

Set sensible defaults for Windows installations
Set sensible defaults for Windows installations

Non-packaged execution will need this to be overridden anyway, and it
avoids a surprise "Drop state data into the current working directory"
event.

Signed-off-by: Paul "TBBle" Hampson <220d126b3d70d9d7b0fda508e4cb236265bccc41@Pobox.com>
