refactor: use google/wire for cache (#7024)

Signed-off-by: knqyf263 <knqyf263@gmail.com>
This commit is contained in:
Teppei Fukuda
2024-06-27 11:04:01 +04:00
committed by GitHub
parent e9fc3e3397
commit 4be02bab8c
22 changed files with 525 additions and 447 deletions

View File

@@ -9,6 +9,7 @@ import (
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"github.com/aquasecurity/trivy/pkg/cache"
"github.com/aquasecurity/trivy/pkg/commands/clean"
"github.com/aquasecurity/trivy/pkg/flag"
)
@@ -100,6 +101,9 @@ func TestRun(t *testing.T) {
GlobalOptions: flag.GlobalOptions{
CacheDir: tempDir,
},
CacheOptions: flag.CacheOptions{
CacheBackend: string(cache.TypeFS),
},
CleanOptions: tt.cleanOpts,
}