Skip to content

Commit

Permalink
fix dry run creation time (#19060)
Browse files Browse the repository at this point in the history
fixes #19059
Give the mock time for dry run, otherwise, it will be zero.

Signed-off-by: wang yan <[email protected]>
  • Loading branch information
wy65701436 authored Jul 31, 2023
1 parent bef4ccc commit d93f24a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/jobservice/job/impl/gc/garbage_collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,7 @@ func (gc *GarbageCollector) deletedArt(ctx job.Context) (map[string][]model.Arti
ManifestMediaType: untagged.ManifestMediaType,
RepositoryName: untagged.RepositoryName,
Digest: untagged.Digest,
CreationTime: time.Now(),
}
allTrashedArts = append(allTrashedArts, simulateDeletion)
} else {
Expand Down

0 comments on commit d93f24a

Please sign in to comment.