Update dependencies

Closes #2129
This commit is contained in:
Alexander Neumann committed 2019-02-10 13:24:37 +01:00
1 parent aa7043151a
commit b9f0f031b6
672 files changed
+116946 -13086

No files matched your search

+10
View File
@@ -76,6 +76,16 @@ func Expand(path string) (string, error) {
return filepath.Join(dir, path[1:]), nil
}
// Reset clears the cache, forcing the next call to Dir to re-detect
// the home directory. This generally never has to be called, but can be
// useful in tests if you're modifying the home directory via the HOME
// env var or something.
func Reset() {
cacheLock.Lock()
defer cacheLock.Unlock()
homedirCache = ""
}
func dirUnix() (string, error) {
homeEnv := "HOME"
if runtime.GOOS == "plan9" {