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 3fdf2c4 commit 09d8bdd
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.
fmt.Printf("Error reading SHA-1 hash file for dependency %s: %s\n", dep, err)
fmt.Printf("Error reading SHA hash file for dependency %s: %s\n", dep, err)
// Set some default or empty resolved identifier for the dependency.
d.ResolvedIdentifier = ""
} else {
Expand Down

0 comments on commit 09d8bdd

Please sign in to comment.