(lines []string)
| 230 | } |
| 231 | |
| 232 | func writeLinesToFile(lines []string) error { |
| 233 | f, err := os.Create(*regenerateChecksums) |
| 234 | if err != nil { |
| 235 | return errors.Wrap(err, "writeLinesToFile") |
| 236 | } |
| 237 | |
| 238 | defer f.Close() //nolint:errcheck |
| 239 | |
| 240 | for _, l := range lines { |
| 241 | fmt.Fprintln(f, l) //nolint:errcheck |
| 242 | } |
| 243 | |
| 244 | return nil |
| 245 | } |
| 246 | |
| 247 | func downloadTool(toolName, toolVersion string, oldChecksums, downloadedChecksums map[string]string, errorCount *int) error { |
| 248 | t, ok := tools[toolName] |