mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-23 15:37:50 -08:00
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:
committed by
Teppei Fukuda
parent
db2d0c2e9b
commit
43362b2832
@@ -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())
|
||||
|
||||
|
||||
Reference in New Issue
Block a user