Skip to content

Commit

Permalink
Add debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
tooky committed Sep 19, 2024
1 parent 12585e5 commit 09bd941
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion internal/digest/digest.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,14 @@ func DirSha256(dirPath string, excludePaths []string, logger *logger.Logger) (st
return "", err
}
defer digestsFile.Close()
ignoredPaths, err := excludePathsFromFile(filepath.Join(dirPath, ".kosli_ignore"))
ignoreFilePath := filepath.Join(dirPath, ".kosli_ignore")
ignoredPaths, err := excludePathsFromFile(ignoreFilePath)
if err != nil {
return "", err
}
if len(ignoredPaths) > 0 {
logger.Debug(" -> ignore file used %s -- excluding paths: %s", ignoreFilePath, ignoredPaths)
}
excludePaths = append(excludePaths, ignoredPaths...)
err = calculateDirContentSha256(digestsFile, dirPath, tmpDir, excludePaths, logger)
if err != nil {
Expand Down

0 comments on commit 09bd941

Please sign in to comment.