Compare commits
	
		
			2 Commits
		
	
	
		
			f115bb49c8
			...
			db2f2e859b
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| db2f2e859b | |||
| 200e8b02ac | 
|  | @ -55,6 +55,14 @@ func main() { | ||||||
| 		return | 		return | ||||||
| 	} | 	} | ||||||
| 	setupSlog() | 	setupSlog() | ||||||
|  | 	slog.Info("start repo-health-checker", "version", Version) | ||||||
|  | 	slog.Debug("cli args", | ||||||
|  | 		"repoSize", size, | ||||||
|  | 		"localList", localList, | ||||||
|  | 		"checkFileNameList", checkFileNameList, | ||||||
|  | 		"checkFileSumList", checkFileSumList, | ||||||
|  | 		"meta", metaFile, | ||||||
|  | 	) | ||||||
| 	var err error | 	var err error | ||||||
| 	err = healthcheck.RepoSize(*size) | 	err = healthcheck.RepoSize(*size) | ||||||
| 	if err != nil { | 	if err != nil { | ||||||
|  |  | ||||||
|  | @ -20,13 +20,7 @@ func getForbiddens(root string) ([]string, error) { | ||||||
| 		return false | 		return false | ||||||
| 	}) | 	}) | ||||||
| 
 | 
 | ||||||
| 	var err error | 	err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error { | ||||||
| 
 |  | ||||||
| 	if err != nil { |  | ||||||
| 		return nil, err |  | ||||||
| 	} |  | ||||||
| 
 |  | ||||||
| 	err = filepath.Walk(root, func(path string, info os.FileInfo, err error) error { |  | ||||||
| 		if err != nil { | 		if err != nil { | ||||||
| 			return err | 			return err | ||||||
| 		} | 		} | ||||||
|  | @ -38,7 +32,10 @@ func getForbiddens(root string) ([]string, error) { | ||||||
| 				return nil | 				return nil | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
| 
 | 		// TODO: remove this temporary fix for stdout and stderr
 | ||||||
|  | 		if path == root && (info.Name() == "stdout" || info.Name() == "stderr") { | ||||||
|  | 			return nil | ||||||
|  | 		} | ||||||
| 		// Get the relative path to the git repo root
 | 		// Get the relative path to the git repo root
 | ||||||
| 		relPath, err := filepath.Rel(root, path) | 		relPath, err := filepath.Rel(root, path) | ||||||
| 		if err != nil { | 		if err != nil { | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user