Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

FIX (pre-commit): Add running go mod tidy in pre-commit

Rostislav Dugina495e5317aa7
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index c57bb855..13e63729 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -27,3 +27,10 @@ repos:
language: system
files: ^backend/.*\.go$
pass_filenames: false
+
+ - id: backend-go-mod-tidy
+ name: Backend Go Mod Tidy
+ entry: bash -c "cd backend && go mod tidy"
+ language: system
+ files: ^backend/.*\.go$
+ pass_filenames: false
diff --git a/backend/go.mod b/backend/go.mod
index c0cb9fab..fd76d9c0 100644
--- a/backend/go.mod
+++ b/backend/go.mod
@@ -28,7 +28,6 @@ require (
github.com/valkey-io/valkey-go v1.0.70
go.mongodb.org/mongo-driver v1.17.6
golang.org/x/crypto v0.46.0
- golang.org/x/time v0.14.0
gorm.io/driver/postgres v1.5.11
gorm.io/gorm v1.26.1
)
@@ -186,6 +185,7 @@ require (
go.yaml.in/yaml/v2 v2.4.3 // indirect
golang.org/x/exp v0.0.0-20251023183803-a4bb9ffd2546 // indirect
golang.org/x/term v0.38.0 // indirect
+ golang.org/x/time v0.14.0 // indirect
gopkg.in/natefinch/lumberjack.v2 v2.2.1 // indirect
gopkg.in/validator.v2 v2.0.1 // indirect
moul.io/http2curl/v2 v2.3.0 // indirect