We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8cf48e commit 09b5348Copy full SHA for 09b5348
pkg/runtime/depot.go
@@ -160,6 +160,9 @@ func (d *depot) SetCacheSize(mb int) {
160
// Artifact metadata comes from the depot's cache, and may not exist for installed artifacts that
161
// predate the cache.
162
func (d *depot) Exists(id strfmt.UUID) (bool, *artifactInfo) {
163
+ d.mapMutex.Lock()
164
+ defer d.mapMutex.Unlock()
165
+
166
if _, ok := d.artifacts[id]; ok {
167
if artifact, exists := d.config.Cache[id]; exists {
168
return true, artifact
0 commit comments