Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 3 additions & 0 deletions pkg/manifests/bundleloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ func collectWalkErrs(walk filepath.WalkFunc, errs *[]error) filepath.WalkFunc {
}

func (b *bundleLoader) LoadBundleWalkFunc(path string, f os.FileInfo, err error) error {
if err != nil {
return err
}
if f == nil {
return fmt.Errorf("invalid file: %v", f)
}
Expand Down
6 changes: 6 additions & 0 deletions pkg/manifests/packagemanifestloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ func (p *packageManifestLoader) LoadPackage() error {
// LoadPackagesWalkFunc attempts to unmarshal the file at the given path into a PackageManifest resource.
// If unmarshaling is successful, the PackageManifest is added to the loader's store.
func (p *packageManifestLoader) LoadPackagesWalkFunc(path string, f os.FileInfo, err error) error {
if err != nil {
return err
}
if f == nil {
return fmt.Errorf("invalid file: %v", f)
}
Expand Down Expand Up @@ -85,6 +88,9 @@ func (p *packageManifestLoader) LoadPackagesWalkFunc(path string, f os.FileInfo,
}

func (p *packageManifestLoader) LoadBundleWalkFunc(path string, f os.FileInfo, err error) error {
if err != nil {
return err
}
if f == nil {
return fmt.Errorf("invalid file: %v", f)
}
Expand Down
Loading