Skip to content

Commit

Permalink
Not to fail when dependency SHA cannot be read from file
Browse files Browse the repository at this point in the history
Signed-off-by: Parthiba-Hazra <[email protected]>
  • Loading branch information
Parthiba-Hazra committed Jul 27, 2023
1 parent 8fc31cc commit 11ae91c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion provider/internal/java/dependency.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func (p *javaServiceClient) parseDepString(dep, localRepoPath string) (provider.
b, err := os.ReadFile(fp)
if err != nil {
// Log the error and continue with the next dependency.
p.log.V(7).Info("Error reading SHA hash file for dependency %s: %s\n", dep, err)
p.log.V(5).Error(err, "error reading SHA hash file for dependency", "dep", d.Name)
// Set some default or empty resolved identifier for the dependency.
d.ResolvedIdentifier = ""
} else {
Expand Down

0 comments on commit 11ae91c

Please sign in to comment.