Skip to content

Commit

Permalink
fix: adds better err messaging when remote fails to resolve (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
UncleGedd committed Mar 4, 2024
1 parent d96623e commit 246f63b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pkg/bundle/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,10 @@ func (b *Bundle) ValidateBundleResources(bundle *types.UDSBundle, spinner *messa
return err
}
if err := remote.Repo().Reference.ValidateReferenceAsDigest(); err != nil {
manifestDesc, _ := remote.ResolveRoot()
manifestDesc, err := remote.ResolveRoot()
if err != nil {
return err
}
// todo: don't do this here, a "validate" fn shouldn't be modifying the bundle
bundle.Packages[idx].Ref = pkg.Ref + "@sha256:" + manifestDesc.Digest.Encoded()
}
Expand Down

0 comments on commit 246f63b

Please sign in to comment.