feat(db): store metadata as a file (#464)

* refactor: wrap errors

* feat(db): add the metadata file

* test(db): re-generate mocks

* fix(app): read metadata from the file in showVersion

* fix: open the database after downloading it

* fix(operation): use UpdateMetadata

* chore(mod): update dependency

* test(integration): fix tests

* fix(conf): rename TRIVY_NONSSL to TRIVY_NON_SSL
This commit is contained in:
Teppei Fukuda
2020-04-15 16:07:42 +03:00
committed by GitHub
parent 329f245283
commit ac5f313129
23 changed files with 532 additions and 247 deletions

View File

@@ -24,7 +24,7 @@ func initializeLibServer() *library.Server {
return &library.Server{}
}
func initializeDBWorker(quiet bool) dbWorker {
func initializeDBWorker(cacheDir string, quiet bool) dbWorker {
wire.Build(DBWorkerSuperSet)
return dbWorker{}
}