Fix module paths for GitHub repository structure

- Update go.mod files to use github.com/Fimeg/RedFlag module path
- Fix all import statements across server and agent code
- Resolves build errors when cloning from GitHub
- Utils package (version comparison) is actually needed and working
This commit is contained in:
Fimeg
2025-10-29 11:53:20 -04:00
parent 56ed1069e0
commit e40cb14945
24 changed files with 45 additions and 45 deletions

View File

@@ -10,13 +10,13 @@ import (
"strings" "strings"
"time" "time"
"github.com/aggregator-project/aggregator-agent/internal/cache" "github.com/Fimeg/RedFlag/aggregator-agent/internal/cache"
"github.com/aggregator-project/aggregator-agent/internal/client" "github.com/Fimeg/RedFlag/aggregator-agent/internal/client"
"github.com/aggregator-project/aggregator-agent/internal/config" "github.com/Fimeg/RedFlag/aggregator-agent/internal/config"
"github.com/aggregator-project/aggregator-agent/internal/display" "github.com/Fimeg/RedFlag/aggregator-agent/internal/display"
"github.com/aggregator-project/aggregator-agent/internal/installer" "github.com/Fimeg/RedFlag/aggregator-agent/internal/installer"
"github.com/aggregator-project/aggregator-agent/internal/scanner" "github.com/Fimeg/RedFlag/aggregator-agent/internal/scanner"
"github.com/aggregator-project/aggregator-agent/internal/system" "github.com/Fimeg/RedFlag/aggregator-agent/internal/system"
"github.com/google/uuid" "github.com/google/uuid"
) )

View File

@@ -1,6 +1,6 @@
module github.com/aggregator-project/aggregator-agent module github.com/Fimeg/RedFlag/aggregator-agent
go 1.25 go 1.21
require ( require (
github.com/docker/docker v27.4.1+incompatible github.com/docker/docker v27.4.1+incompatible

View File

@@ -7,7 +7,7 @@ import (
"path/filepath" "path/filepath"
"time" "time"
"github.com/aggregator-project/aggregator-agent/internal/client" "github.com/Fimeg/RedFlag/aggregator-agent/internal/client"
"github.com/google/uuid" "github.com/google/uuid"
) )

View File

@@ -7,7 +7,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/aggregator-project/aggregator-agent/internal/client" "github.com/Fimeg/RedFlag/aggregator-agent/internal/client"
) )
// Color codes for terminal output // Color codes for terminal output

View File

@@ -8,7 +8,7 @@ import (
"regexp" "regexp"
"strings" "strings"
"github.com/aggregator-project/aggregator-agent/internal/client" "github.com/Fimeg/RedFlag/aggregator-agent/internal/client"
) )
// APTScanner scans for APT package updates // APTScanner scans for APT package updates

View File

@@ -8,7 +8,7 @@ import (
"regexp" "regexp"
"strings" "strings"
"github.com/aggregator-project/aggregator-agent/internal/client" "github.com/Fimeg/RedFlag/aggregator-agent/internal/client"
) )
// DNFScanner scans for DNF/RPM package updates // DNFScanner scans for DNF/RPM package updates

View File

@@ -6,7 +6,7 @@ import (
"os/exec" "os/exec"
"strings" "strings"
"github.com/aggregator-project/aggregator-agent/internal/client" "github.com/Fimeg/RedFlag/aggregator-agent/internal/client"
"github.com/docker/docker/api/types/container" "github.com/docker/docker/api/types/container"
dockerclient "github.com/docker/docker/client" dockerclient "github.com/docker/docker/client"
) )

View File

@@ -3,7 +3,7 @@
package scanner package scanner
import "github.com/aggregator-project/aggregator-agent/internal/client" import "github.com/Fimeg/RedFlag/aggregator-agent/internal/client"
// WindowsUpdateScanner stub for non-Windows platforms // WindowsUpdateScanner stub for non-Windows platforms
type WindowsUpdateScanner struct{} type WindowsUpdateScanner struct{}

View File

@@ -9,8 +9,8 @@ import (
"strings" "strings"
"time" "time"
"github.com/aggregator-project/aggregator-agent/internal/client" "github.com/Fimeg/RedFlag/aggregator-agent/internal/client"
"github.com/aggregator-project/aggregator-agent/pkg/windowsupdate" "github.com/Fimeg/RedFlag/aggregator-agent/pkg/windowsupdate"
"github.com/go-ole/go-ole" "github.com/go-ole/go-ole"
"github.com/scjalliance/comshim" "github.com/scjalliance/comshim"
) )

View File

@@ -8,7 +8,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/aggregator-project/aggregator-agent/internal/client" "github.com/Fimeg/RedFlag/aggregator-agent/internal/client"
) )
// WingetPackage represents a single package from winget output // WingetPackage represents a single package from winget output

View File

@@ -7,12 +7,12 @@ import (
"path/filepath" "path/filepath"
"time" "time"
"github.com/aggregator-project/aggregator-server/internal/api/handlers" "github.com/Fimeg/RedFlag/aggregator-server/internal/api/handlers"
"github.com/aggregator-project/aggregator-server/internal/api/middleware" "github.com/Fimeg/RedFlag/aggregator-server/internal/api/middleware"
"github.com/aggregator-project/aggregator-server/internal/config" "github.com/Fimeg/RedFlag/aggregator-server/internal/config"
"github.com/aggregator-project/aggregator-server/internal/database" "github.com/Fimeg/RedFlag/aggregator-server/internal/database"
"github.com/aggregator-project/aggregator-server/internal/database/queries" "github.com/Fimeg/RedFlag/aggregator-server/internal/database/queries"
"github.com/aggregator-project/aggregator-server/internal/services" "github.com/Fimeg/RedFlag/aggregator-server/internal/services"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@@ -1,6 +1,6 @@
module github.com/aggregator-project/aggregator-server module github.com/Fimeg/RedFlag/aggregator-server
go 1.25 go 1.21
require ( require (
github.com/gin-gonic/gin v1.11.0 github.com/gin-gonic/gin v1.11.0

View File

@@ -6,10 +6,10 @@ import (
"net/http" "net/http"
"time" "time"
"github.com/aggregator-project/aggregator-server/internal/api/middleware" "github.com/Fimeg/RedFlag/aggregator-server/internal/api/middleware"
"github.com/aggregator-project/aggregator-server/internal/database/queries" "github.com/Fimeg/RedFlag/aggregator-server/internal/database/queries"
"github.com/aggregator-project/aggregator-server/internal/models" "github.com/Fimeg/RedFlag/aggregator-server/internal/models"
"github.com/aggregator-project/aggregator-server/internal/utils" "github.com/Fimeg/RedFlag/aggregator-server/internal/utils"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/google/uuid" "github.com/google/uuid"
) )

View File

@@ -4,8 +4,8 @@ import (
"net/http" "net/http"
"strconv" "strconv"
"github.com/aggregator-project/aggregator-server/internal/database/queries" "github.com/Fimeg/RedFlag/aggregator-server/internal/database/queries"
"github.com/aggregator-project/aggregator-server/internal/models" "github.com/Fimeg/RedFlag/aggregator-server/internal/models"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/google/uuid" "github.com/google/uuid"
) )

View File

@@ -5,7 +5,7 @@ import (
"net/http" "net/http"
"time" "time"
"github.com/aggregator-project/aggregator-server/internal/api/middleware" "github.com/Fimeg/RedFlag/aggregator-server/internal/api/middleware"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@@ -5,8 +5,8 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/aggregator-project/aggregator-server/internal/config" "github.com/Fimeg/RedFlag/aggregator-server/internal/config"
"github.com/aggregator-project/aggregator-server/internal/database/queries" "github.com/Fimeg/RedFlag/aggregator-server/internal/database/queries"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@@ -3,7 +3,7 @@ package handlers
import ( import (
"net/http" "net/http"
"github.com/aggregator-project/aggregator-server/internal/services" "github.com/Fimeg/RedFlag/aggregator-server/internal/services"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@@ -4,7 +4,7 @@ import (
"net/http" "net/http"
"time" "time"
"github.com/aggregator-project/aggregator-server/internal/database/queries" "github.com/Fimeg/RedFlag/aggregator-server/internal/database/queries"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
) )

View File

@@ -7,8 +7,8 @@ import (
"strconv" "strconv"
"time" "time"
"github.com/aggregator-project/aggregator-server/internal/database/queries" "github.com/Fimeg/RedFlag/aggregator-server/internal/database/queries"
"github.com/aggregator-project/aggregator-server/internal/models" "github.com/Fimeg/RedFlag/aggregator-server/internal/models"
"github.com/gin-gonic/gin" "github.com/gin-gonic/gin"
"github.com/google/uuid" "github.com/google/uuid"
) )

View File

@@ -3,7 +3,7 @@ package queries
import ( import (
"time" "time"
"github.com/aggregator-project/aggregator-server/internal/models" "github.com/Fimeg/RedFlag/aggregator-server/internal/models"
"github.com/google/uuid" "github.com/google/uuid"
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
) )

View File

@@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"time" "time"
"github.com/aggregator-project/aggregator-server/internal/models" "github.com/Fimeg/RedFlag/aggregator-server/internal/models"
"github.com/google/uuid" "github.com/google/uuid"
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
) )

View File

@@ -6,7 +6,7 @@ import (
"strings" "strings"
"time" "time"
"github.com/aggregator-project/aggregator-server/internal/models" "github.com/Fimeg/RedFlag/aggregator-server/internal/models"
"github.com/google/uuid" "github.com/google/uuid"
"github.com/jmoiron/sqlx" "github.com/jmoiron/sqlx"
) )

View File

@@ -5,8 +5,8 @@ import (
"log" "log"
"time" "time"
"github.com/aggregator-project/aggregator-server/internal/database/queries" "github.com/Fimeg/RedFlag/aggregator-server/internal/database/queries"
"github.com/aggregator-project/aggregator-server/internal/models" "github.com/Fimeg/RedFlag/aggregator-server/internal/models"
"github.com/google/uuid" "github.com/google/uuid"
) )

View File

@@ -3,7 +3,7 @@ package services
import ( import (
"time" "time"
"github.com/aggregator-project/aggregator-server/internal/config" "github.com/Fimeg/RedFlag/aggregator-server/internal/config"
) )
type TimezoneService struct { type TimezoneService struct {