Skip to content

Commit dee646a

Browse files
committed
Write tmp cache file on the same partition
1 parent d27310c commit dee646a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/api/cache.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func (c *ScalewayCache) Save() error {
181181
logrus.Debugf("Writing cache file to disk")
182182

183183
if c.Modified {
184-
file, err := ioutil.TempFile("", "")
184+
file, err := ioutil.TempFile(filepath.Dir(c.Path), filepath.Base(c.Path))
185185
if err != nil {
186186
return err
187187
}

0 commit comments

Comments
 (0)