feat(healthcheck): log error on .gitignore error
This commit is contained in:
		
							parent
							
								
									7d9cd723f0
								
							
						
					
					
						commit
						38f11788a0
					
				|  | @ -16,9 +16,13 @@ func getForbiddens(root string) ([]string, error) { | |||
| 	var matches []string | ||||
| 
 | ||||
| 	// Create a gitignore instance from the .gitignore file
 | ||||
| 	ignore := gitignore.NewRepositoryWithCache(root, ".gitignore", gitignore.NewCache(), func(e gitignore.Error) bool { | ||||
| 		return false | ||||
| 	}) | ||||
| 	ignore := gitignore.NewRepositoryWithCache( | ||||
| 		root, ".gitignore", gitignore.NewCache(), | ||||
| 		func(e gitignore.Error) bool { | ||||
| 			slog.Error("gitignore error", "error", e) | ||||
| 			return true | ||||
| 		}, | ||||
| 	) | ||||
| 
 | ||||
| 	err := filepath.Walk(root, func(path string, info os.FileInfo, err error) error { | ||||
| 		if err != nil { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user