You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
log.WarnContext(ctx, "Trivy DB may be corrupted and will be re-downloaded. If you manually downloaded DB - use the `--skip-db-update` flag to skip updating DB.")
120
130
returntrue, nil
121
131
}
122
132
123
-
ifskip&&noRequiredFiles {
124
-
log.ErrorContext(ctx, "The first run cannot skip downloading DB")
125
-
returnfalse, xerrors.New("--skip-db-update cannot be specified on the first run")
126
-
}
127
-
128
133
ifdb.SchemaVersion<meta.Version {
129
134
log.ErrorContext(ctx, "Trivy version is old. Update to the latest version.", log.String("version", cliVersion))
130
135
returnfalse, xerrors.Errorf("the version of DB schema doesn't match. Local DB: %d, Expected: %d",
0 commit comments