Skip to content

Commit

Permalink
hotfix for regression (#98)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aishwarya-Lad authored Mar 12, 2024
1 parent b225636 commit 0a9466e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cache/restorer.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ func (r restorer) Restore(dsts []string) error {
}

for _, e := range entries {
dsts = append(dsts, strings.TrimPrefix(e.Path, prefix))
if r.enableCacheKeySeparator {
dsts = append(dsts, strings.TrimPrefix(e.Path, prefix))
} else {
dsts = append(dsts, strings.TrimPrefix(e.Path, prefix+getSeparator()))
}
}
} else if err != common.ErrNotImplemented {
return err
Expand Down

0 comments on commit 0a9466e

Please sign in to comment.