Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(db): fix javadb downloading error handling #7642

Merged
merged 2 commits into from
Oct 3, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix(db): fix javadb downloading error handling
Signed-off-by: nikpivkin <nikita.pivkin@smartforce.io>
  • Loading branch information
nikpivkin committed Oct 3, 2024
commit 72e827d8d4a79b7a6ac03b49253b2ccdf334190d
2 changes: 1 addition & 1 deletion pkg/javadb/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (u *Updater) downloadDB(ctx context.Context) error {
return xerrors.Errorf("failed to download vulnerability DB: %w", err)
DmitriyLewen marked this conversation as resolved.
Show resolved Hide resolved
}

return xerrors.New("failed to download Java DB from any source")
return nil
}

func Init(cacheDir string, javaDBRepositories []name.Reference, skip, quiet bool, registryOption ftypes.RegistryOptions) {
Expand Down