Skip to content

Commit

Permalink
Merge pull request #495 from sapcc/fix-validate
Browse files Browse the repository at this point in the history
fix `keppel validate` failing if a reference without digest is given
  • Loading branch information
majewsky authored Feb 14, 2025
2 parents c7e8134 + ff62f99 commit 0e0e133
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/client/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ func (c *RepoClient) doValidateManifest(ctx context.Context, reference models.Ma

digest := digest.FromBytes(manifestBytes)

if digest != reference.Digest {
if reference.Digest != "" && digest != reference.Digest {
return keppel.ErrDigestInvalid.With("actual manifest digest is " + digest.String())
}

Expand Down

0 comments on commit 0e0e133

Please sign in to comment.