mirror of
https://github.com/golang/go
synced 2024-10-01 03:18:33 -06:00
go.tools/dashboard/builder: use $home on Plan 9
LGTM=alex.brainman R=golang-codereviews, lucio.dere, alex.brainman CC=golang-codereviews https://golang.org/cl/64520043
This commit is contained in:
parent
a565a4ff67
commit
0b0cd8b22c
@ -203,9 +203,12 @@ func NewBuilder(goroot *Repo, name string) (*Builder, error) {
|
||||
|
||||
// read keys from keyfile
|
||||
fn := ""
|
||||
if runtime.GOOS == "windows" {
|
||||
switch runtime.GOOS {
|
||||
case "plan9":
|
||||
fn = os.Getenv("home")
|
||||
case "windows":
|
||||
fn = os.Getenv("HOMEDRIVE") + os.Getenv("HOMEPATH")
|
||||
} else {
|
||||
default:
|
||||
fn = os.Getenv("HOME")
|
||||
}
|
||||
fn = filepath.Join(fn, ".gobuildkey")
|
||||
|
Loading…
Reference in New Issue
Block a user