From 320162d241d8993943d4c9a7c07616efb37597a8 Mon Sep 17 00:00:00 2001 From: NaturalSpottingSmite <239067163+NaturalSpottingSmite@users.noreply.github.com> Date: Sat, 14 Feb 2026 00:28:16 +0000 Subject: [PATCH] Fix incorrect module path --- engine/config/config.go | 3 ++- engine/credentials.go | 3 ++- engine/db/db.go | 2 +- engine/engine.go | 6 +++--- go.mod | 2 +- go.sum | 1 + main.go | 8 ++++---- www/api/admin.go | 3 ++- www/api/announcements.go | 3 ++- www/api/api.go | 7 ++++--- www/api/authentication.go | 3 ++- www/api/graphs.go | 3 ++- www/api/injects.go | 3 ++- www/api/metadata.go | 3 ++- www/api/pcrs.go | 3 ++- www/api/red.go | 3 ++- www/api/services.go | 3 ++- www/api/submissions.go | 3 ++- www/api/teamchecks.go | 3 ++- www/frontend.go | 5 +++-- www/middleware/authentication.go | 3 ++- www/middleware/securityheaders.go | 3 ++- www/router.go | 8 ++++---- 23 files changed, 51 insertions(+), 33 deletions(-) diff --git a/engine/config/config.go b/engine/config/config.go index c5053056..7a805079 100644 --- a/engine/config/config.go +++ b/engine/config/config.go @@ -6,11 +6,12 @@ import ( "log/slog" "os" "path/filepath" - "quotient/engine/checks" "slices" "sort" "strings" + "github.com/dbaseqp/Quotient/engine/checks" + "github.com/BurntSushi/toml" ) diff --git a/engine/credentials.go b/engine/credentials.go index b463c894..f26bb543 100644 --- a/engine/credentials.go +++ b/engine/credentials.go @@ -7,8 +7,9 @@ import ( "log/slog" "os" "path/filepath" - "quotient/engine/db" "sync" + + "github.com/dbaseqp/Quotient/engine/db" ) // safeOpenInDir opens a file within the given base directory safely using os.Root. diff --git a/engine/db/db.go b/engine/db/db.go index 0c2ebe1f..d66cecef 100644 --- a/engine/db/db.go +++ b/engine/db/db.go @@ -7,7 +7,7 @@ import ( "log/slog" "os" - "quotient/engine/config" + "github.com/dbaseqp/Quotient/engine/config" "github.com/go-ldap/ldap/v3" "gorm.io/driver/postgres" diff --git a/engine/engine.go b/engine/engine.go index 21817bca..90c28ec5 100644 --- a/engine/engine.go +++ b/engine/engine.go @@ -13,9 +13,9 @@ import ( "time" "unicode/utf8" - "quotient/engine/checks" - "quotient/engine/config" - "quotient/engine/db" + "github.com/dbaseqp/Quotient/engine/checks" + "github.com/dbaseqp/Quotient/engine/config" + "github.com/dbaseqp/Quotient/engine/db" "github.com/redis/go-redis/v9" ) diff --git a/go.mod b/go.mod index fb812052..d4035815 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module quotient +module github.com/dbaseqp/Quotient go 1.25.1 diff --git a/go.sum b/go.sum index e9d89f74..8b8b42af 100644 --- a/go.sum +++ b/go.sum @@ -188,6 +188,7 @@ golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.26.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.30.0 h1:QjkSwP/36a20jFYWkSue1YwXzLmsV5Gfq7Eiy72C1uc= golang.org/x/sys v0.30.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= diff --git a/main.go b/main.go index d8941939..ba2aa97e 100644 --- a/main.go +++ b/main.go @@ -6,10 +6,10 @@ import ( "log/slog" "os" - "quotient/engine" - "quotient/engine/config" - "quotient/engine/db" - "quotient/www" + "github.com/dbaseqp/Quotient/engine" + "github.com/dbaseqp/Quotient/engine/config" + "github.com/dbaseqp/Quotient/engine/db" + "github.com/dbaseqp/Quotient/www" ) var logLvels = map[string]slog.Level{ diff --git a/www/api/admin.go b/www/api/admin.go index 61ccceab..9f68382e 100644 --- a/www/api/admin.go +++ b/www/api/admin.go @@ -4,8 +4,9 @@ import ( "encoding/json" "log/slog" "net/http" - "quotient/engine/db" "regexp" + + "github.com/dbaseqp/Quotient/engine/db" ) var validIdentifierRegex = regexp.MustCompile(`^[0-9]{1,3}$`) diff --git a/www/api/announcements.go b/www/api/announcements.go index b7968292..9af02f0c 100644 --- a/www/api/announcements.go +++ b/www/api/announcements.go @@ -7,10 +7,11 @@ import ( "net/http" "os" "path" - "quotient/engine/db" "slices" "time" + "github.com/dbaseqp/Quotient/engine/db" + "gorm.io/gorm" ) diff --git a/www/api/api.go b/www/api/api.go index 3d752b3c..6cd04227 100644 --- a/www/api/api.go +++ b/www/api/api.go @@ -6,9 +6,10 @@ import ( "log/slog" "net/http" "os" - "quotient/engine" - "quotient/engine/config" - "quotient/engine/db" + + "github.com/dbaseqp/Quotient/engine" + "github.com/dbaseqp/Quotient/engine/config" + "github.com/dbaseqp/Quotient/engine/db" ) var ( diff --git a/www/api/authentication.go b/www/api/authentication.go index 29f96ad9..a4106a4b 100644 --- a/www/api/authentication.go +++ b/www/api/authentication.go @@ -10,10 +10,11 @@ import ( "log/slog" "net/http" "os" - "quotient/engine/config" "strings" "time" + "github.com/dbaseqp/Quotient/engine/config" + "github.com/go-ldap/ldap/v3" "github.com/gorilla/securecookie" ) diff --git a/www/api/graphs.go b/www/api/graphs.go index 43078761..0a6fcb96 100644 --- a/www/api/graphs.go +++ b/www/api/graphs.go @@ -2,8 +2,9 @@ package api import ( "net/http" - "quotient/engine/db" "slices" + + "github.com/dbaseqp/Quotient/engine/db" ) const ( diff --git a/www/api/injects.go b/www/api/injects.go index 3e3397ef..38be249b 100644 --- a/www/api/injects.go +++ b/www/api/injects.go @@ -7,10 +7,11 @@ import ( "net/http" "os" "path" - "quotient/engine/db" "slices" "time" + "github.com/dbaseqp/Quotient/engine/db" + "gorm.io/gorm" ) diff --git a/www/api/metadata.go b/www/api/metadata.go index b5258644..dc317366 100644 --- a/www/api/metadata.go +++ b/www/api/metadata.go @@ -2,7 +2,8 @@ package api import ( "net/http" - "quotient/engine/checks" + + "github.com/dbaseqp/Quotient/engine/checks" ) type BoxMetadata struct { diff --git a/www/api/pcrs.go b/www/api/pcrs.go index e9f21804..06ffae25 100644 --- a/www/api/pcrs.go +++ b/www/api/pcrs.go @@ -5,9 +5,10 @@ import ( "fmt" "log/slog" "net/http" - "quotient/engine/db" "slices" "strconv" + + "github.com/dbaseqp/Quotient/engine/db" ) func GetCredlists(w http.ResponseWriter, r *http.Request) { diff --git a/www/api/red.go b/www/api/red.go index 33af6e10..82177a7d 100644 --- a/www/api/red.go +++ b/www/api/red.go @@ -6,8 +6,9 @@ import ( "log/slog" "net/http" "os" - "quotient/engine/db" "strconv" + + "github.com/dbaseqp/Quotient/engine/db" ) func GetRed(w http.ResponseWriter, r *http.Request) { diff --git a/www/api/services.go b/www/api/services.go index da0a7fcb..33d25817 100644 --- a/www/api/services.go +++ b/www/api/services.go @@ -4,10 +4,11 @@ import ( "fmt" "log/slog" "net/http" - "quotient/engine/db" "slices" "strconv" "strings" + + "github.com/dbaseqp/Quotient/engine/db" ) func GetTeams(w http.ResponseWriter, r *http.Request) { diff --git a/www/api/submissions.go b/www/api/submissions.go index 9f66356a..91d52aef 100644 --- a/www/api/submissions.go +++ b/www/api/submissions.go @@ -9,10 +9,11 @@ import ( "net/http" "os" "path/filepath" - "quotient/engine/db" "slices" "strconv" "time" + + "github.com/dbaseqp/Quotient/engine/db" ) func CreateSubmission(w http.ResponseWriter, r *http.Request) { diff --git a/www/api/teamchecks.go b/www/api/teamchecks.go index 205dbac3..8533ff8b 100644 --- a/www/api/teamchecks.go +++ b/www/api/teamchecks.go @@ -4,7 +4,8 @@ import ( "encoding/json" "log/slog" "net/http" - "quotient/engine/db" + + "github.com/dbaseqp/Quotient/engine/db" ) // GetTeamChecks returns per-team service check states for admins diff --git a/www/frontend.go b/www/frontend.go index c506f72a..ee8d4bc9 100644 --- a/www/frontend.go +++ b/www/frontend.go @@ -3,10 +3,11 @@ package www import ( "maps" "net/http" - "quotient/engine/db" - "quotient/www/api" "slices" "text/template" + + "github.com/dbaseqp/Quotient/engine/db" + "github.com/dbaseqp/Quotient/www/api" ) var ( diff --git a/www/middleware/authentication.go b/www/middleware/authentication.go index 1fedebe6..35d73336 100644 --- a/www/middleware/authentication.go +++ b/www/middleware/authentication.go @@ -3,9 +3,10 @@ package middleware import ( "context" "net/http" - "quotient/www/api" "slices" "strings" + + "github.com/dbaseqp/Quotient/www/api" ) // load in authentication sources diff --git a/www/middleware/securityheaders.go b/www/middleware/securityheaders.go index 4f7c99bd..fb14322c 100644 --- a/www/middleware/securityheaders.go +++ b/www/middleware/securityheaders.go @@ -2,7 +2,8 @@ package middleware import ( "net/http" - "quotient/engine/config" + + "github.com/dbaseqp/Quotient/engine/config" ) // SecurityHeaders adds essential security headers to all responses diff --git a/www/router.go b/www/router.go index 595420c5..e6e01009 100644 --- a/www/router.go +++ b/www/router.go @@ -7,10 +7,10 @@ import ( "net/http" "time" - "quotient/engine" - "quotient/engine/config" - "quotient/www/api" - "quotient/www/middleware" + "github.com/dbaseqp/Quotient/engine" + "github.com/dbaseqp/Quotient/engine/config" + "github.com/dbaseqp/Quotient/www/api" + "github.com/dbaseqp/Quotient/www/middleware" ) type Router struct {