Skip to content

Commit

Permalink
Merge pull request #3118 from kichristensen/fixIntegrationTest
Browse files Browse the repository at this point in the history
Don't determine default tag if bundle is referenced using digest
  • Loading branch information
sgettys authored May 18, 2024
2 parents 67f1dd8 + d97d0ec commit 0427c4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/cnab/extended_bundle.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,8 +376,8 @@ func (b *ExtendedBundle) ResolveVersionv2(name string, dep v2.Dependency) (OCIRe
}

if dep.Version == "" {
// Check if they specified an explicit tag in referenced bundle already
if ref.HasTag() {
// Check if they specified an explicit tag or digest in referenced bundle already
if ref.HasTag() || ref.HasDigest() {
return ref, nil
}

Expand Down

0 comments on commit 0427c4d

Please sign in to comment.