Skip to content

Conversation

@r0mflip
Copy link
Collaborator

@r0mflip r0mflip commented Jan 2, 2026

A package information must be retrieved from all the repos to determine priorities and figure out right installation candidate avoiding package overrides from unintended repos.

Copy link
Collaborator

@nguyen-phillip nguyen-phillip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this mean that a single bad user-configured repo would block all Googet operations even though all of the managed repos were available? This seems a bit severe. I'd be less worried about a change that allowed marking certain repos as critical in the configuration and then failing only for the critical repos.

rf, err := d.unmarshalRepoPackages(ctx, r, cacheDir, cacheLife)
if err != nil {
logger.Errorf("error reading repo %q: %v", r, err)
errs = multierr.Append(errs, fmt.Errorf("error reading repo %q: %w", r, err))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use errors.Join from the standard library instead of multierr.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants