more fucking import fixes
Some checks are pending
CI Pipeline / Run Tests (push) Waiting to run
CI Pipeline / Lint Code (push) Waiting to run
CI Pipeline / Security Scan (push) Waiting to run
CI Pipeline / E2E Tests (push) Blocked by required conditions

This commit is contained in:
Enki 2025-08-27 15:32:35 -07:00
parent cdf90c95bc
commit 79af79bf0d
16 changed files with 45 additions and 48 deletions

View File

@ -14,13 +14,13 @@ import (
"syscall" "syscall"
"time" "time"
"git.sovbit.dev/enki/torrentGateway/internal/api" "torrentGateway/internal/api"
"git.sovbit.dev/enki/torrentGateway/internal/blossom" "torrentGateway/internal/blossom"
"git.sovbit.dev/enki/torrentGateway/internal/config" "torrentGateway/internal/config"
"git.sovbit.dev/enki/torrentGateway/internal/dht" "torrentGateway/internal/dht"
"git.sovbit.dev/enki/torrentGateway/internal/middleware" "torrentGateway/internal/middleware"
"git.sovbit.dev/enki/torrentGateway/internal/storage" "torrentGateway/internal/storage"
"git.sovbit.dev/enki/torrentGateway/internal/web" "torrentGateway/internal/web"
"github.com/gorilla/mux" "github.com/gorilla/mux"
) )

6
go.mod
View File

@ -1,6 +1,8 @@
module git.sovbit.dev/enki/torrentGateway module torrentGateway
go 1.21 go 1.24.1
toolchain go1.24.4
require ( require (
github.com/anacrolix/torrent v1.58.1 github.com/anacrolix/torrent v1.58.1

View File

@ -7,7 +7,7 @@ import (
"strings" "strings"
"time" "time"
"git.sovbit.dev/enki/torrentGateway/internal/auth" "torrentGateway/internal/auth"
) )
// AdminAuth handles admin authentication and authorization // AdminAuth handles admin authentication and authorization

View File

@ -10,8 +10,8 @@ import (
"strings" "strings"
"time" "time"
"git.sovbit.dev/enki/torrentGateway/internal/profile" "torrentGateway/internal/profile"
"git.sovbit.dev/enki/torrentGateway/internal/storage" "torrentGateway/internal/storage"
"github.com/gorilla/mux" "github.com/gorilla/mux"
) )

View File

@ -6,8 +6,8 @@ import (
"net/http" "net/http"
"time" "time"
"git.sovbit.dev/enki/torrentGateway/internal/auth" "torrentGateway/internal/auth"
"git.sovbit.dev/enki/torrentGateway/internal/middleware" "torrentGateway/internal/middleware"
"github.com/gorilla/mux" "github.com/gorilla/mux"
) )

View File

@ -17,19 +17,19 @@ import (
"sync" "sync"
"time" "time"
"git.sovbit.dev/enki/torrentGateway/internal/admin" "torrentGateway/internal/admin"
"git.sovbit.dev/enki/torrentGateway/internal/auth" "torrentGateway/internal/auth"
"git.sovbit.dev/enki/torrentGateway/internal/blossom" "torrentGateway/internal/blossom"
"git.sovbit.dev/enki/torrentGateway/internal/config" "torrentGateway/internal/config"
"git.sovbit.dev/enki/torrentGateway/internal/middleware" "torrentGateway/internal/middleware"
"git.sovbit.dev/enki/torrentGateway/internal/nostr" "torrentGateway/internal/nostr"
"git.sovbit.dev/enki/torrentGateway/internal/profile" "torrentGateway/internal/profile"
"git.sovbit.dev/enki/torrentGateway/internal/storage" "torrentGateway/internal/storage"
"git.sovbit.dev/enki/torrentGateway/internal/streaming" "torrentGateway/internal/streaming"
"git.sovbit.dev/enki/torrentGateway/internal/torrent" "torrentGateway/internal/torrent"
"git.sovbit.dev/enki/torrentGateway/internal/tracker" "torrentGateway/internal/tracker"
"git.sovbit.dev/enki/torrentGateway/internal/transcoding" "torrentGateway/internal/transcoding"
"git.sovbit.dev/enki/torrentGateway/internal/dht" "torrentGateway/internal/dht"
"github.com/gorilla/mux" "github.com/gorilla/mux"
nip "github.com/nbd-wtf/go-nostr" nip "github.com/nbd-wtf/go-nostr"
) )

View File

@ -10,9 +10,9 @@ import (
"strings" "strings"
"time" "time"
"git.sovbit.dev/enki/torrentGateway/internal/config" "torrentGateway/internal/config"
"git.sovbit.dev/enki/torrentGateway/internal/proxy" "torrentGateway/internal/proxy"
"git.sovbit.dev/enki/torrentGateway/internal/storage" "torrentGateway/internal/storage"
"golang.org/x/time/rate" "golang.org/x/time/rate"
) )

View File

@ -8,7 +8,7 @@ import (
"sync" "sync"
"time" "time"
"git.sovbit.dev/enki/torrentGateway/internal/config" "torrentGateway/internal/config"
) )
// APINodeInfo represents a DHT node for API compatibility // APINodeInfo represents a DHT node for API compatibility

View File

@ -10,7 +10,7 @@ import (
"sync" "sync"
"time" "time"
"git.sovbit.dev/enki/torrentGateway/internal/config" "torrentGateway/internal/config"
) )
const ( const (

View File

@ -6,7 +6,7 @@ import (
"net/http" "net/http"
"strings" "strings"
"git.sovbit.dev/enki/torrentGateway/internal/auth" "torrentGateway/internal/auth"
) )
// UserContextKey is the key for storing user info in request context // UserContextKey is the key for storing user info in request context

View File

@ -8,8 +8,8 @@ import (
"sync" "sync"
"time" "time"
"git.sovbit.dev/enki/torrentGateway/internal/dht" "torrentGateway/internal/dht"
"git.sovbit.dev/enki/torrentGateway/internal/tracker" "torrentGateway/internal/tracker"
) )
// PeerInfo represents a peer from any source (tracker, DHT, WebSeed) // PeerInfo represents a peer from any source (tracker, DHT, WebSeed)

View File

@ -8,8 +8,8 @@ import (
"sync" "sync"
"time" "time"
"git.sovbit.dev/enki/torrentGateway/internal/config" "torrentGateway/internal/config"
"git.sovbit.dev/enki/torrentGateway/internal/storage" "torrentGateway/internal/storage"
) )
// SmartProxy provides intelligent proxy functionality for serving chunked files // SmartProxy provides intelligent proxy functionality for serving chunked files

View File

@ -14,7 +14,7 @@ import (
"time" "time"
"github.com/anacrolix/torrent/bencode" "github.com/anacrolix/torrent/bencode"
"git.sovbit.dev/enki/torrentGateway/internal/config" "torrentGateway/internal/config"
) )
// Tracker represents a BitTorrent tracker instance // Tracker represents a BitTorrent tracker instance

View File

@ -259,11 +259,6 @@ if [ "$SKIP_BUILD" = false ]; then
# Fix Go module dependencies # Fix Go module dependencies
echo "📦 Updating Go module dependencies..." echo "📦 Updating Go module dependencies..."
# Ensure we're using the local module
export GOPROXY=direct
export GOSUMDB=off
go mod tidy go mod tidy
# Install Go dependencies # Install Go dependencies

View File

@ -7,8 +7,8 @@ import (
"net/http" "net/http"
"time" "time"
"git.sovbit.dev/enki/torrentGateway/internal/auth" "torrentGateway/internal/auth"
"git.sovbit.dev/enki/torrentGateway/internal/middleware" "torrentGateway/internal/middleware"
) )
// Common auth errors for testing // Common auth errors for testing

View File

@ -14,9 +14,9 @@ import (
"testing" "testing"
"time" "time"
"git.sovbit.dev/enki/torrentGateway/internal/api" "torrentGateway/internal/api"
"git.sovbit.dev/enki/torrentGateway/internal/config" "torrentGateway/internal/config"
"git.sovbit.dev/enki/torrentGateway/internal/storage" "torrentGateway/internal/storage"
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/stretchr/testify/assert" "github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require" "github.com/stretchr/testify/require"