Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.
Go aialertsdashboarddockerdocker-monitoringgohomelabinfrastructure-monitoringkubernetesmonitoringmspproxmoxproxmox-backup-serverproxmox-mail-gatewayproxmox-veself-hostedtruenastypescriptvspherewebhooks
Skip deleted directories when deriving golangci-lint targets in pre-commit
rcourtman1c11d0945db2
diff --git a/.husky/pre-commit b/.husky/pre-commitindex d19bff8bd3..100b804980 100755--- a/.husky/pre-commit+++ b/.husky/pre-commit@@ -153,6 +153,11 @@ if command -v golangci-lint >/dev/null 2>&1; thenSTAGED_GO_PKGS=""NESTED_GO_MODULES=""for staged_dir in $STAGED_GO_DIRS; do+ # Staged deletions can leave a directory that no longer exists+ # (e.g. removing a whole package); golangci-lint hard-fails on+ # missing paths, so skip them. Deletion-only commits fall through+ # to the ./... default below.+ [ -d "$staged_dir" ] || continuemodule_root="$staged_dir"while [ "$module_root" != "." ] && [ ! -f "$module_root/go.mod" ]; domodule_root=$(dirname "$module_root")