filepath.Walk can return a `nil` for the stat value, when it does, the directory is invalid and the error will be set. This causes a panic+crash if the directory does not currently exist when RemoveAllButCurrent is called. The following patch makes the behavior an error instead. Signed-off-by: Erik Hollensbe <github@hollensbe.org> |
||
|---|---|---|
| .. | ||
| testdata | ||
| gitrepository_controller.go | ||
| gitrepository_controller_test.go | ||
| helmchart_controller.go | ||
| helmchart_controller_test.go | ||
| helmrepository_controller.go | ||
| helmrepository_controller_test.go | ||
| predicate.go | ||
| storage.go | ||
| storage_test.go | ||
| suite_test.go | ||