Compare commits
No commits in common. "db2f2e859bd20627eaaead85a9f2db3e1ac6d0dd" and "f115bb49c8f416402d86ad904cabd198c4680f87" have entirely different histories.
db2f2e859b
...
f115bb49c8
|
@ -55,14 +55,6 @@ 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,7 +20,13 @@ func getForbiddens(root string) ([]string, error) {
|
||||||
return false
|
return false
|
||||||
})
|
})
|
||||||
|
|
||||||
err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
|
var err 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
|
||||||
}
|
}
|
||||||
|
@ -32,10 +38,7 @@ 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