diff --git a/src/restic/index/index.go b/src/restic/index/index.go index 6a122e67a..f1c41b79f 100644 --- a/src/restic/index/index.go +++ b/src/restic/index/index.go @@ -169,7 +169,7 @@ func (idx *Index) AddPack(id restic.ID, size int64, entries []restic.Blob) error return errors.Errorf("pack %v already present in the index", id.Str()) } - idx.Packs[id] = Pack{Size: size, Entries: entries} + idx.Packs[id] = Pack{ID: id, Size: size, Entries: entries} return nil }