Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
blaubaer committed Oct 11, 2024
1 parent f14bada commit ef2a21b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cmd/build/build-image.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func (this *buildImage) createAnnotations(ctx context.Context, e edition, additi
}
}

return nil, err
return result, err
}

func (this *buildImage) createdMerged(ctx context.Context, e edition, as buildArtifacts) (result *buildArtifact, _ error) {
Expand All @@ -263,7 +263,7 @@ func (this *buildImage) createdMerged(ctx context.Context, e edition, as buildAr
}

var manifest gcv1.ImageIndex = empty.Index
mutate.IndexMediaType(manifest, types.DockerManifestList)
manifest = mutate.IndexMediaType(manifest, types.DockerManifestList)
manifest = mutate.Annotations(manifest, annotations).(gcv1.ImageIndex)

var adds []mutate.IndexAddendum
Expand Down
2 changes: 1 addition & 1 deletion cmd/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ func (this *build) publish(ctx context.Context, as buildArtifacts) error {
}
}

ll := l.With("duration", time.Now().Sub(start).Truncate(time.Millisecond))
ll := l.With("duration", time.Since(start).Truncate(time.Millisecond))
if l.IsDebugEnabled() {
ll.Info("publish release...DONE!")
} else {
Expand Down
2 changes: 1 addition & 1 deletion cmd/build/repo-releases.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ func (this *repoRelease) uploadAsset(ctx context.Context, name, mediaType, label
return fail(err)
}

ll := l.With("duration", time.Now().Sub(start).Truncate(time.Millisecond))
ll := l.With("duration", time.Since(start).Truncate(time.Millisecond))
if l.IsDebugEnabled() {
ll.Info("uploading asset... DONE!")
} else {
Expand Down

0 comments on commit ef2a21b

Please sign in to comment.