chore(deps): update dictionary tools, Vuls is now CGO free (#1667)

* chore(deps): update dictionary tools, Vuls is now CGO free

* chore(integration): update commit
This commit is contained in:
MaineK00n
2023-05-11 00:28:51 +09:00
committed by GitHub
parent ef80838ddd
commit 7475b27f6a
14 changed files with 114 additions and 155 deletions

View File

@@ -133,9 +133,9 @@ func newOvalDB(cnf config.VulnDictInterface) (ovaldb.DB, error) {
if cnf.GetType() == "sqlite3" {
path = cnf.GetSQLite3Path()
}
driver, locked, err := ovaldb.NewDB(cnf.GetType(), path, cnf.GetDebugSQL(), ovaldb.Option{})
driver, err := ovaldb.NewDB(cnf.GetType(), path, cnf.GetDebugSQL(), ovaldb.Option{})
if err != nil {
if locked {
if xerrors.Is(err, ovaldb.ErrDBLocked) {
return nil, xerrors.Errorf("Failed to init OVAL DB. SQLite3: %s is locked. err: %w, ", cnf.GetSQLite3Path(), err)
}
return nil, xerrors.Errorf("Failed to init OVAL DB. DB Path: %s, err: %w", path, err)