зеркало из https://github.com/golang/dep.git
Typoo, specify when the OSX fix should be executed
This commit is contained in:
Родитель
a09c316b3a
Коммит
39cdb41f3e
|
@ -11,6 +11,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
"runtime"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
@ -274,9 +275,11 @@ func (p *IntegrationTestProject) makeRootTempDir() {
|
||||||
p.tempdir, err = ioutil.TempDir("", "gotest")
|
p.tempdir, err = ioutil.TempDir("", "gotest")
|
||||||
p.Must(err)
|
p.Must(err)
|
||||||
|
|
||||||
// Fox for OSX where the tempdir is a symlink:
|
// Fix for OSX where the tempdir is a symlink:
|
||||||
p.tempdir, err = filepath.EvalSymlinks(p.tempdir)
|
if runtime.GOOS == "darwin" {
|
||||||
p.Must(err)
|
p.tempdir, err = filepath.EvalSymlinks(p.tempdir)
|
||||||
|
p.Must(err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче