From d03022b9ca5e658e551ab3b9907da946b11a0b4c Mon Sep 17 00:00:00 2001 From: Sven Dowideit Date: Tue, 8 Oct 2013 13:24:20 +1000 Subject: [PATCH] use empty string so TempDir uses the OS's temp dir automatically (Closes #2117) --- buildfile.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/buildfile.go b/buildfile.go index 7f2ea00643..8231287eaf 100644 --- a/buildfile.go +++ b/buildfile.go @@ -458,9 +458,8 @@ func (b *buildFile) commit(id string, autoCmd []string, comment string) error { var lineContinuation = regexp.MustCompile(`\s*\\\s*\n`) func (b *buildFile) Build(context io.Reader) (string, error) { - // FIXME: @creack any reason for using /tmp instead of ""? // FIXME: @creack "name" is a terrible variable name - name, err := ioutil.TempDir("/tmp", "docker-build") + name, err := ioutil.TempDir("", "docker-build") if err != nil { return "", err }