()
| 93 | } |
| 94 | |
| 95 | func (c Commit) GodepsReposChanged() ([]string, error) { |
| 96 | repos := map[string]struct{}{} |
| 97 | for _, file := range c.Files { |
| 98 | if !file.HasVendoredCodeChanges() { |
| 99 | continue |
| 100 | } |
| 101 | repo, err := file.GodepsRepoChanged() |
| 102 | if err != nil { |
| 103 | return nil, fmt.Errorf("problem with file %q in commit %s: %s", file, c.Sha, err) |
| 104 | } |
| 105 | repos[repo] = struct{}{} |
| 106 | } |
| 107 | changed := []string{} |
| 108 | for repo := range repos { |
| 109 | changed = append(changed, repo) |
| 110 | } |
| 111 | return changed, nil |
| 112 | } |
| 113 | |
| 114 | type File string |
| 115 |
no test coverage detected