Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Commit 7552637

Browse files
authored
fix(unpack): set environment variable if already unpacked (#1409)
1 parent affba97 commit 7552637

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

binaries/unpack/unpack.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ func Unpack(data []byte, name string, version string) {
3636
}
3737

3838
if _, err := os.Stat(file); err == nil {
39+
if err := os.Setenv(FileEnv, file); err != nil {
40+
panic(err)
41+
}
3942
logger.Debug.Printf("query engine exists, not unpacking. %s. at %s", time.Since(start), file)
4043
return
4144
}

0 commit comments

Comments
 (0)