mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
use empty string so TempDir uses the OS's temp dir automatically (Closes #2117)
This commit is contained in:
parent
2d425af1b1
commit
d03022b9ca
1 changed files with 1 additions and 2 deletions
|
@ -458,9 +458,8 @@ func (b *buildFile) commit(id string, autoCmd []string, comment string) error {
|
||||||
var lineContinuation = regexp.MustCompile(`\s*\\\s*\n`)
|
var lineContinuation = regexp.MustCompile(`\s*\\\s*\n`)
|
||||||
|
|
||||||
func (b *buildFile) Build(context io.Reader) (string, error) {
|
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
|
// FIXME: @creack "name" is a terrible variable name
|
||||||
name, err := ioutil.TempDir("/tmp", "docker-build")
|
name, err := ioutil.TempDir("", "docker-build")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue