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

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