You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
digest=desc.Digest// if this isn't a no-op, we've got a naughty registry
151
+
152
+
rc.has[cacheKeyDigest(repo, digest)] =true
153
+
154
+
// carefully copy only valid Resolve* fields such that any other existing fields are kept (this matters more if we ever make our mutexes better/less aggressive 👀)
// carefully copy only valid Resolve* fields such that any other existing fields are kept (this matters more if we ever make our mutexes better/less aggressive 👀)
195
+
ifd, ok:=rc.data[desc.Digest]; ok {
196
+
d.MediaType=desc.MediaType
197
+
d.Digest=desc.Digest
198
+
d.Size=desc.Size
199
+
desc=d
200
+
}
201
+
rc.data[desc.Digest] =desc
202
+
203
+
returndesc, nil
204
+
}
205
+
137
206
// TODO more methods (currently only implements what's actually necessary for SynthesizeIndex)
0 commit comments