We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db19b34 commit ce22f54Copy full SHA for ce22f54
pkg/fanal/analyzer/fs.go
@@ -36,7 +36,7 @@ func NewCompositeFS() (*CompositeFS, error) {
36
func (c *CompositeFS) CopyFileToTemp(opener Opener, _ os.FileInfo) (string, error) {
37
// Create a temporary file to which the file in the layer will be copied
38
// so that all the files will not be loaded into memory
39
- f, err := xos.CreateTemp("", "analyzer-file-")
+ f, err := xos.CreateTemp(c.dir, "analyzer-file-")
40
if err != nil {
41
return "", xerrors.Errorf("create temp error: %w", err)
42
}
0 commit comments