diff --git a/cmd/gateway/main.go b/cmd/gateway/main.go index 33e70a8..b624cef 100644 --- a/cmd/gateway/main.go +++ b/cmd/gateway/main.go @@ -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" ) diff --git a/go.mod b/go.mod index d6d289b..2d16a21 100644 --- a/go.mod +++ b/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 diff --git a/internal/admin/auth.go b/internal/admin/auth.go index 44fb184..c02dff3 100644 --- a/internal/admin/auth.go +++ b/internal/admin/auth.go @@ -7,7 +7,7 @@ import ( "strings" "time" - "git.sovbit.dev/enki/torrentGateway/internal/auth" + "torrentGateway/internal/auth" ) // AdminAuth handles admin authentication and authorization diff --git a/internal/admin/handlers.go b/internal/admin/handlers.go index de42720..caf1327 100644 --- a/internal/admin/handlers.go +++ b/internal/admin/handlers.go @@ -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" ) diff --git a/internal/api/auth_handlers.go b/internal/api/auth_handlers.go index 4adea32..df800e1 100644 --- a/internal/api/auth_handlers.go +++ b/internal/api/auth_handlers.go @@ -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" ) diff --git a/internal/api/handlers.go b/internal/api/handlers.go index 2b8b036..da2ee7d 100644 --- a/internal/api/handlers.go +++ b/internal/api/handlers.go @@ -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" ) diff --git a/internal/blossom/server.go b/internal/blossom/server.go index 1238d04..272ed54 100644 --- a/internal/blossom/server.go +++ b/internal/blossom/server.go @@ -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" ) diff --git a/internal/dht/bootstrap.go b/internal/dht/bootstrap.go index 46668c3..b680f06 100644 --- a/internal/dht/bootstrap.go +++ b/internal/dht/bootstrap.go @@ -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 diff --git a/internal/dht/node.go b/internal/dht/node.go index d890bbf..70928ec 100644 --- a/internal/dht/node.go +++ b/internal/dht/node.go @@ -10,7 +10,7 @@ import ( "sync" "time" - "git.sovbit.dev/enki/torrentGateway/internal/config" + "torrentGateway/internal/config" ) const ( diff --git a/internal/middleware/auth.go b/internal/middleware/auth.go index c7e78d2..9ff3f26 100644 --- a/internal/middleware/auth.go +++ b/internal/middleware/auth.go @@ -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 diff --git a/internal/p2p/coordinator.go b/internal/p2p/coordinator.go index 5066065..eff4d93 100644 --- a/internal/p2p/coordinator.go +++ b/internal/p2p/coordinator.go @@ -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) diff --git a/internal/proxy/smart_proxy.go b/internal/proxy/smart_proxy.go index ad0d00b..7d6b3a1 100644 --- a/internal/proxy/smart_proxy.go +++ b/internal/proxy/smart_proxy.go @@ -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 diff --git a/internal/tracker/tracker.go b/internal/tracker/tracker.go index f09be19..fc279ba 100644 --- a/internal/tracker/tracker.go +++ b/internal/tracker/tracker.go @@ -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 diff --git a/scripts/install_native.sh b/scripts/install_native.sh index 6ecd47f..acd16b3 100755 --- a/scripts/install_native.sh +++ b/scripts/install_native.sh @@ -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 diff --git a/test/auth_mock.go b/test/auth_mock.go index 4e08a84..5a36c2a 100644 --- a/test/auth_mock.go +++ b/test/auth_mock.go @@ -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 diff --git a/test/integration_tester.go b/test/integration_tester.go index 8a9a923..fd330f9 100644 --- a/test/integration_tester.go +++ b/test/integration_tester.go @@ -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"