Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit e883e8a

Browse files
committed
fix setting the cache dir
1 parent 8c25906 commit e883e8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ var (
6161
)
6262

6363
func init() {
64-
vfsutil.ArchiveCacheDir = filepath.Join(*cacheDir, "lang-go-archive-cache")
6564
prometheus.MustRegister(openGauge)
6665
}
6766

@@ -80,6 +79,8 @@ func main() {
8079
fmt.Printf("Command line flag %s: %q (default %q)\n", f.Name, f.Value.String(), f.DefValue)
8180
})
8281

82+
vfsutil.ArchiveCacheDir = filepath.Join(*cacheDir, "lang-go-archive-cache")
83+
8384
// Start pprof server, if desired.
8485
if *pprof != "" {
8586
go func() {

0 commit comments

Comments
 (0)