more fucking import fixes
This commit is contained in:
parent
cdf90c95bc
commit
79af79bf0d
@ -14,13 +14,13 @@ import (
|
||||
"syscall"
|
||||
"time"
|
||||
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/api"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/blossom"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/config"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/dht"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/middleware"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/storage"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/web"
|
||||
"torrentGateway/internal/api"
|
||||
"torrentGateway/internal/blossom"
|
||||
"torrentGateway/internal/config"
|
||||
"torrentGateway/internal/dht"
|
||||
"torrentGateway/internal/middleware"
|
||||
"torrentGateway/internal/storage"
|
||||
"torrentGateway/internal/web"
|
||||
"github.com/gorilla/mux"
|
||||
)
|
||||
|
||||
|
6
go.mod
6
go.mod
@ -1,6 +1,8 @@
|
||||
module git.sovbit.dev/enki/torrentGateway
|
||||
module torrentGateway
|
||||
|
||||
go 1.21
|
||||
go 1.24.1
|
||||
|
||||
toolchain go1.24.4
|
||||
|
||||
require (
|
||||
github.com/anacrolix/torrent v1.58.1
|
||||
|
@ -7,7 +7,7 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/auth"
|
||||
"torrentGateway/internal/auth"
|
||||
)
|
||||
|
||||
// AdminAuth handles admin authentication and authorization
|
||||
|
@ -10,8 +10,8 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/profile"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/storage"
|
||||
"torrentGateway/internal/profile"
|
||||
"torrentGateway/internal/storage"
|
||||
"github.com/gorilla/mux"
|
||||
)
|
||||
|
||||
|
@ -6,8 +6,8 @@ import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/auth"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/middleware"
|
||||
"torrentGateway/internal/auth"
|
||||
"torrentGateway/internal/middleware"
|
||||
"github.com/gorilla/mux"
|
||||
)
|
||||
|
||||
|
@ -17,19 +17,19 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/admin"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/auth"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/blossom"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/config"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/middleware"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/nostr"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/profile"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/storage"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/streaming"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/torrent"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/tracker"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/transcoding"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/dht"
|
||||
"torrentGateway/internal/admin"
|
||||
"torrentGateway/internal/auth"
|
||||
"torrentGateway/internal/blossom"
|
||||
"torrentGateway/internal/config"
|
||||
"torrentGateway/internal/middleware"
|
||||
"torrentGateway/internal/nostr"
|
||||
"torrentGateway/internal/profile"
|
||||
"torrentGateway/internal/storage"
|
||||
"torrentGateway/internal/streaming"
|
||||
"torrentGateway/internal/torrent"
|
||||
"torrentGateway/internal/tracker"
|
||||
"torrentGateway/internal/transcoding"
|
||||
"torrentGateway/internal/dht"
|
||||
"github.com/gorilla/mux"
|
||||
nip "github.com/nbd-wtf/go-nostr"
|
||||
)
|
||||
|
@ -10,9 +10,9 @@ import (
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/config"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/proxy"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/storage"
|
||||
"torrentGateway/internal/config"
|
||||
"torrentGateway/internal/proxy"
|
||||
"torrentGateway/internal/storage"
|
||||
"golang.org/x/time/rate"
|
||||
)
|
||||
|
||||
|
@ -8,7 +8,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/config"
|
||||
"torrentGateway/internal/config"
|
||||
)
|
||||
|
||||
// APINodeInfo represents a DHT node for API compatibility
|
||||
|
@ -10,7 +10,7 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/config"
|
||||
"torrentGateway/internal/config"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -6,7 +6,7 @@ import (
|
||||
"net/http"
|
||||
"strings"
|
||||
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/auth"
|
||||
"torrentGateway/internal/auth"
|
||||
)
|
||||
|
||||
// UserContextKey is the key for storing user info in request context
|
||||
|
@ -8,8 +8,8 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/dht"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/tracker"
|
||||
"torrentGateway/internal/dht"
|
||||
"torrentGateway/internal/tracker"
|
||||
)
|
||||
|
||||
// PeerInfo represents a peer from any source (tracker, DHT, WebSeed)
|
||||
|
@ -8,8 +8,8 @@ import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/config"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/storage"
|
||||
"torrentGateway/internal/config"
|
||||
"torrentGateway/internal/storage"
|
||||
)
|
||||
|
||||
// SmartProxy provides intelligent proxy functionality for serving chunked files
|
||||
|
@ -14,7 +14,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/anacrolix/torrent/bencode"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/config"
|
||||
"torrentGateway/internal/config"
|
||||
)
|
||||
|
||||
// Tracker represents a BitTorrent tracker instance
|
||||
|
@ -259,11 +259,6 @@ if [ "$SKIP_BUILD" = false ]; then
|
||||
|
||||
# Fix Go module dependencies
|
||||
echo "📦 Updating Go module dependencies..."
|
||||
|
||||
# Ensure we're using the local module
|
||||
export GOPROXY=direct
|
||||
export GOSUMDB=off
|
||||
|
||||
go mod tidy
|
||||
|
||||
# Install Go dependencies
|
||||
|
@ -7,8 +7,8 @@ import (
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/auth"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/middleware"
|
||||
"torrentGateway/internal/auth"
|
||||
"torrentGateway/internal/middleware"
|
||||
)
|
||||
|
||||
// Common auth errors for testing
|
||||
|
@ -14,9 +14,9 @@ import (
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/api"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/config"
|
||||
"git.sovbit.dev/enki/torrentGateway/internal/storage"
|
||||
"torrentGateway/internal/api"
|
||||
"torrentGateway/internal/config"
|
||||
"torrentGateway/internal/storage"
|
||||
"github.com/gorilla/mux"
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
Loading…
x
Reference in New Issue
Block a user