fixed wrong cacheDir

This commit is contained in:
sugarme 2022-02-24 13:07:38 +11:00
parent 881eb11663
commit 7aa4e50199
2 changed files with 3 additions and 2 deletions

View File

@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
- Fixed wrong `cacheDir` and switch off logging.
## [Nofix]
- ctype `long` caused compiling error in MacOS as noted on [#44]. Not working on linux box.

View File

@ -14,11 +14,11 @@ var (
func init() {
// default path: {$HOME}/.cache/gotch
homeDir := os.Getenv("HOME")
CacheDir = fmt.Sprintf("%s/.cache/transformer", homeDir)
CacheDir = fmt.Sprintf("%s/.cache/gotch", homeDir)
initEnv()
log.Printf("INFO: CacheDir=%q\n", CacheDir)
// log.Printf("INFO: CacheDir=%q\n", CacheDir)
}
func initEnv() {