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

go/runtime/bundle: Don't abort when some manifests cannot be loaded #6044

Merged
merged 1 commit into from
Feb 7, 2025
Merged
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
Empty file added .changelog/6044.trivial.md
Empty file.
12 changes: 10 additions & 2 deletions go/runtime/bundle/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,12 +508,20 @@ func (m *Manager) loadManifests() ([]*ExplodedManifest, error) {

b, err := os.ReadFile(filepath.Join(dir, manifestName))
if err != nil {
return nil, fmt.Errorf("failed to read manifest: %w", err)
m.logger.Warn("skipping unreadable manifest",
"path", dir,
"err", err,
)
continue
}

var manifest Manifest
if err = json.Unmarshal(b, &manifest); err != nil {
return nil, fmt.Errorf("failed to parse manifest: %w", err)
m.logger.Warn("skipping malformed manifest",
"path", dir,
"err", err,
)
continue
}

m.logger.Info("manifest loaded",
Expand Down
Loading