aboutsummaryrefslogtreecommitdiff
path: root/internal/object/store.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/object/store.go')
-rw-r--r--internal/object/store.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/object/store.go b/internal/object/store.go
index a11ff7a..cf8b4f9 100644
--- a/internal/object/store.go
+++ b/internal/object/store.go
@@ -39,6 +39,7 @@ func (s *ObjectStore) Load(id string) (*ObjectDef, error) {
if err := yaml.Unmarshal(data, &def); err != nil {
return nil, fmt.Errorf("parse object %s: %w", id, err)
}
+ def.ID = id
s.cache[id] = &def
return &def, nil
}