more fucking import fixes
This commit is contained in:
parent
cdf90c95bc
commit
79af79bf0d
@ -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
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 (
|
require (
|
||||||
github.com/anacrolix/torrent v1.58.1
|
github.com/anacrolix/torrent v1.58.1
|
||||||
|
@ -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
|
||||||
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -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"
|
||||||
)
|
)
|
||||||
|
@ -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"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -10,7 +10,7 @@ import (
|
|||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"git.sovbit.dev/enki/torrentGateway/internal/config"
|
"torrentGateway/internal/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -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
|
||||||
|
@ -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)
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
@ -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"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user