()
| 621 | } |
| 622 | |
| 623 | func (c *ActionCache) groupEntriesByRepoAndSHA() map[deduplicationKey][]string { |
| 624 | groups := make(map[deduplicationKey][]string) |
| 625 | for key, entry := range c.Entries { |
| 626 | ek := deduplicationKey{repo: entry.Repo, sha: entry.SHA} |
| 627 | groups[ek] = append(groups[ek], key) |
| 628 | } |
| 629 | return groups |
| 630 | } |
| 631 | |
| 632 | func buildDedupKeyInfos(keys []string) []cacheKeyInfo { |
| 633 | keyInfos := make([]cacheKeyInfo, len(keys)) |