Skip to content

Commit c2dbf1e

Browse files
[v0.19.x] internal/registry/labels.go: FindMetadataDir fix (#3829)
Co-authored-by: Joe Lanford <[email protected]>
1 parent 0fbd4de commit c2dbf1e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# entries is a list of entries to include in
2+
# release notes and/or the migration guide
3+
entries:
4+
- description: >
5+
Fixed issue that caused scorecard to fail loading local bundle due to a
6+
bug search method for the bundle metadata directory.
7+
kind: bugfix

internal/registry/labels.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,8 @@ func FindMetadataDir(bundleRoot string) (metadataDir string, err error) {
9090
_, err = os.Stat(filepath.Join(path, registrybundle.AnnotationsFile))
9191
if err == nil || errors.Is(err, os.ErrExist) {
9292
metadataDir = path
93-
return nil
9493
}
95-
return err
94+
return nil
9695
})
9796
if err != nil {
9897
return "", err

0 commit comments

Comments
 (0)