fixed wrong cacheDir
This commit is contained in:
parent
881eb11663
commit
7aa4e50199
|
@ -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.
|
||||
|
|
4
init.go
4
init.go
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user