Compare commits

...

2 Commits

Author SHA1 Message Date
db2f2e859b
fix(healthcheck): tmp fix for ignoring stdout & stderr file
All checks were successful
build / build (push) Successful in 1m6s
build / trigger-build-image (push) Successful in 7s
2024-10-18 03:06:12 -04:00
200e8b02ac
feat(healthcheck): more debug logs 2024-10-18 03:02:07 -04:00
2 changed files with 13 additions and 8 deletions

View File

@ -55,6 +55,14 @@ func main() {
return
}
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
err = healthcheck.RepoSize(*size)
if err != nil {

View File

@ -20,13 +20,7 @@ func getForbiddens(root string) ([]string, error) {
return false
})
var err error
if err != nil {
return nil, err
}
err = filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error {
if err != nil {
return err
}
@ -38,7 +32,10 @@ func getForbiddens(root string) ([]string, error) {
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
relPath, err := filepath.Rel(root, path)
if err != nil {