From 03504b61be2e45ce67a7b92a355ac1cd95041839 Mon Sep 17 00:00:00 2001 From: Niklas Ye Date: Wed, 19 Aug 2026 21:21:33 +0200 Subject: [PATCH] gofmt: restore import grouping after the module rename The rename to git.ryuvia.com/niklas/... was a plain string substitution, so it left the import blocks in their old order. The new path sorts before github.com/go-chi/..., where the old one sorted after, which gofmt considers unformatted. go vet does not look at import order, so CI had nothing to say about it. --- internal/api/alerts.go | 2 +- internal/api/incidents.go | 2 +- internal/api/schedule.go | 2 +- internal/api/users.go | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/api/alerts.go b/internal/api/alerts.go index ae5925b..1e44099 100644 --- a/internal/api/alerts.go +++ b/internal/api/alerts.go @@ -10,8 +10,8 @@ import ( "strings" "time" - "github.com/go-chi/chi/v5" "git.ryuvia.com/niklas/terdut-server/internal/models" + "github.com/go-chi/chi/v5" ) // alertSelectFrom is the shared SELECT … FROM … clause used by all alert queries. diff --git a/internal/api/incidents.go b/internal/api/incidents.go index e1d5bbc..0720a9b 100644 --- a/internal/api/incidents.go +++ b/internal/api/incidents.go @@ -8,8 +8,8 @@ import ( "strings" "time" - "github.com/go-chi/chi/v5" "git.ryuvia.com/niklas/terdut-server/internal/models" + "github.com/go-chi/chi/v5" ) func handleListIncidents(db *sql.DB) http.HandlerFunc { diff --git a/internal/api/schedule.go b/internal/api/schedule.go index 5d3a010..a7aafad 100644 --- a/internal/api/schedule.go +++ b/internal/api/schedule.go @@ -8,8 +8,8 @@ import ( "strings" "time" - "github.com/go-chi/chi/v5" "git.ryuvia.com/niklas/terdut-server/internal/models" + "github.com/go-chi/chi/v5" ) func handleCreateSchedule(db *sql.DB) http.HandlerFunc { diff --git a/internal/api/users.go b/internal/api/users.go index 9542256..d22404a 100644 --- a/internal/api/users.go +++ b/internal/api/users.go @@ -11,8 +11,8 @@ import ( "strings" "time" - "github.com/go-chi/chi/v5" "git.ryuvia.com/niklas/terdut-server/internal/models" + "github.com/go-chi/chi/v5" ) func handleBootstrap(db *sql.DB) http.HandlerFunc {