Fix inifinite loop when resolving dependencies of packages in Alpine (#364)

* Change fanal ref

* Fix Inifinite loop when resolving dependencies of packages in Alpine
This commit is contained in:
Masahiro Fujimura
2020-01-13 01:39:21 +09:00
committed by Teppei Fukuda
parent db2d0c2e9b
commit 43362b2832
6 changed files with 7 additions and 33 deletions

View File

@@ -36,10 +36,7 @@ func run(c config.Config) (err error) {
// configure cache dir
utils.SetCacheDir(c.CacheDir)
cacheClient, err := cache.New(c.CacheDir)
if err != nil {
return xerrors.Errorf("unable to initialize cache client: %w", err)
}
cacheClient := cache.Initialize(c.CacheDir)
cacheOperation := operation.NewCache(cacheClient)
log.Logger.Debugf("cache dir: %s", utils.CacheDir())