diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2f858cd..19726b6 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,7 +68,7 @@ jobs: run: > go build -trimpath - -ldflags "-w -s -X github.com/elyby/chrly/internal/version.version=${{ steps.version.outputs.version }} -X github.com/elyby/chrly/internal/version.commit=${{ github.sha }}" + -ldflags "-w -s -X ely.by/chrly/internal/version.version=${{ steps.version.outputs.version }} -X ely.by/chrly/internal/version.commit=${{ github.sha }}" -o ./chrly ./cmd/chrly/... - name: Upload artifact diff --git a/cmd/chrly/chrly.go b/cmd/chrly/chrly.go index efcddc6..c4efa26 100644 --- a/cmd/chrly/chrly.go +++ b/cmd/chrly/chrly.go @@ -4,7 +4,7 @@ import ( "fmt" "os" - . "github.com/elyby/chrly/internal/cmd" + . "ely.by/chrly/internal/cmd" ) func main() { diff --git a/go.mod b/go.mod index 8123a1f..6838c43 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/elyby/chrly +module ely.by/chrly go 1.21 diff --git a/internal/cmd/root.go b/internal/cmd/root.go index ef9b547..7247247 100644 --- a/internal/cmd/root.go +++ b/internal/cmd/root.go @@ -8,9 +8,9 @@ import ( "github.com/spf13/cobra" "github.com/spf13/viper" - "github.com/elyby/chrly/internal/di" - "github.com/elyby/chrly/internal/http" - "github.com/elyby/chrly/internal/version" + "ely.by/chrly/internal/di" + "ely.by/chrly/internal/http" + "ely.by/chrly/internal/version" ) var RootCmd = &cobra.Command{ diff --git a/internal/cmd/token.go b/internal/cmd/token.go index c54ae8d..519e20b 100644 --- a/internal/cmd/token.go +++ b/internal/cmd/token.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - "github.com/elyby/chrly/internal/http" + "ely.by/chrly/internal/http" "github.com/spf13/cobra" ) diff --git a/internal/cmd/version.go b/internal/cmd/version.go index 2faa515..2b4d9b6 100644 --- a/internal/cmd/version.go +++ b/internal/cmd/version.go @@ -7,7 +7,7 @@ import ( "github.com/spf13/cobra" - "github.com/elyby/chrly/internal/version" + "ely.by/chrly/internal/version" ) var versionCmd = &cobra.Command{ diff --git a/internal/db/redis/redis.go b/internal/db/redis/redis.go index d209bea..14fe867 100644 --- a/internal/db/redis/redis.go +++ b/internal/db/redis/redis.go @@ -7,7 +7,7 @@ import ( "github.com/mediocregopher/radix/v4" - "github.com/elyby/chrly/internal/db" + "ely.by/chrly/internal/db" ) const usernameToProfileKey = "hash:username-to-profile" diff --git a/internal/db/redis/redis_integration_test.go b/internal/db/redis/redis_integration_test.go index 8f9f032..1dc13e9 100644 --- a/internal/db/redis/redis_integration_test.go +++ b/internal/db/redis/redis_integration_test.go @@ -15,7 +15,7 @@ import ( assert "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" - "github.com/elyby/chrly/internal/db" + "ely.by/chrly/internal/db" ) var redisAddr string diff --git a/internal/di/db.go b/internal/di/db.go index 2836ed6..80fe7ec 100644 --- a/internal/di/db.go +++ b/internal/di/db.go @@ -7,11 +7,11 @@ import ( "github.com/defval/di" "github.com/spf13/viper" - db2 "github.com/elyby/chrly/internal/db" - "github.com/elyby/chrly/internal/db/redis" - es "github.com/elyby/chrly/internal/eventsubscribers" - "github.com/elyby/chrly/internal/mojang" - "github.com/elyby/chrly/internal/profiles" + db2 "ely.by/chrly/internal/db" + "ely.by/chrly/internal/db/redis" + es "ely.by/chrly/internal/eventsubscribers" + "ely.by/chrly/internal/mojang" + "ely.by/chrly/internal/profiles" ) // v4 had the idea that it would be possible to separate backends for storing skins and capes. diff --git a/internal/di/dispatcher.go b/internal/di/dispatcher.go index 515af54..f0a3131 100644 --- a/internal/di/dispatcher.go +++ b/internal/di/dispatcher.go @@ -4,9 +4,9 @@ import ( "github.com/defval/di" "github.com/mono83/slf" - d "github.com/elyby/chrly/internal/dispatcher" - "github.com/elyby/chrly/internal/eventsubscribers" - "github.com/elyby/chrly/internal/http" + d "ely.by/chrly/internal/dispatcher" + "ely.by/chrly/internal/eventsubscribers" + "ely.by/chrly/internal/http" ) var dispatcher = di.Options( diff --git a/internal/di/handlers.go b/internal/di/handlers.go index ce67473..4f466e7 100644 --- a/internal/di/handlers.go +++ b/internal/di/handlers.go @@ -10,7 +10,7 @@ import ( "github.com/gorilla/mux" "github.com/spf13/viper" - . "github.com/elyby/chrly/internal/http" + . "ely.by/chrly/internal/http" ) var handlers = di.Options( diff --git a/internal/di/logger.go b/internal/di/logger.go index c1f6bfd..723e008 100644 --- a/internal/di/logger.go +++ b/internal/di/logger.go @@ -13,8 +13,8 @@ import ( "github.com/mono83/slf/wd" "github.com/spf13/viper" - "github.com/elyby/chrly/internal/eventsubscribers" - "github.com/elyby/chrly/internal/version" + "ely.by/chrly/internal/eventsubscribers" + "ely.by/chrly/internal/version" ) var logger = di.Options( diff --git a/internal/di/mojang_textures.go b/internal/di/mojang_textures.go index 5422a6d..77170a3 100644 --- a/internal/di/mojang_textures.go +++ b/internal/di/mojang_textures.go @@ -8,8 +8,8 @@ import ( "github.com/defval/di" "github.com/spf13/viper" - "github.com/elyby/chrly/internal/mojang" - "github.com/elyby/chrly/internal/profiles" + "ely.by/chrly/internal/mojang" + "ely.by/chrly/internal/profiles" ) var mojangTextures = di.Options( diff --git a/internal/di/profiles.go b/internal/di/profiles.go index dc0bad4..31a9853 100644 --- a/internal/di/profiles.go +++ b/internal/di/profiles.go @@ -3,8 +3,8 @@ package di import ( "github.com/defval/di" - . "github.com/elyby/chrly/internal/http" - "github.com/elyby/chrly/internal/profiles" + . "ely.by/chrly/internal/http" + "ely.by/chrly/internal/profiles" ) var profilesDi = di.Options( diff --git a/internal/di/server.go b/internal/di/server.go index ae4035a..435c9d8 100644 --- a/internal/di/server.go +++ b/internal/di/server.go @@ -11,7 +11,7 @@ import ( "github.com/getsentry/raven-go" "github.com/spf13/viper" - . "github.com/elyby/chrly/internal/http" + . "ely.by/chrly/internal/http" ) var server = di.Options( diff --git a/internal/di/signer.go b/internal/di/signer.go index 7d48106..2dfcc1a 100644 --- a/internal/di/signer.go +++ b/internal/di/signer.go @@ -7,8 +7,8 @@ import ( "errors" "strings" - "github.com/elyby/chrly/internal/http" - . "github.com/elyby/chrly/internal/signer" + "ely.by/chrly/internal/http" + . "ely.by/chrly/internal/signer" "github.com/defval/di" "github.com/spf13/viper" diff --git a/internal/eventsubscribers/logger_test.go b/internal/eventsubscribers/logger_test.go index eb94b46..3869f38 100644 --- a/internal/eventsubscribers/logger_test.go +++ b/internal/eventsubscribers/logger_test.go @@ -9,7 +9,7 @@ import ( "github.com/mono83/slf/params" "github.com/stretchr/testify/mock" - "github.com/elyby/chrly/internal/dispatcher" + "ely.by/chrly/internal/dispatcher" ) type LoggerMock struct { diff --git a/internal/eventsubscribers/stats_reporter_test.go b/internal/eventsubscribers/stats_reporter_test.go index b52a6bc..2b8d08e 100644 --- a/internal/eventsubscribers/stats_reporter_test.go +++ b/internal/eventsubscribers/stats_reporter_test.go @@ -8,7 +8,7 @@ import ( "github.com/mono83/slf" - "github.com/elyby/chrly/internal/dispatcher" + "ely.by/chrly/internal/dispatcher" "github.com/stretchr/testify/mock" ) diff --git a/internal/eventsubscribers/subscriber.go b/internal/eventsubscribers/subscriber.go index 61f2254..f4897d4 100644 --- a/internal/eventsubscribers/subscriber.go +++ b/internal/eventsubscribers/subscriber.go @@ -1,6 +1,6 @@ package eventsubscribers -import "github.com/elyby/chrly/internal/dispatcher" +import "ely.by/chrly/internal/dispatcher" type Subscriber interface { dispatcher.Subscriber diff --git a/internal/http/api.go b/internal/http/api.go index c569e86..8cb71b2 100644 --- a/internal/http/api.go +++ b/internal/http/api.go @@ -6,8 +6,8 @@ import ( "github.com/gorilla/mux" - "github.com/elyby/chrly/internal/db" - "github.com/elyby/chrly/internal/profiles" + "ely.by/chrly/internal/db" + "ely.by/chrly/internal/profiles" ) type ProfilesManager interface { diff --git a/internal/http/api_test.go b/internal/http/api_test.go index 8b68475..295b664 100644 --- a/internal/http/api_test.go +++ b/internal/http/api_test.go @@ -13,8 +13,8 @@ import ( "github.com/stretchr/testify/mock" "github.com/stretchr/testify/suite" - "github.com/elyby/chrly/internal/db" - "github.com/elyby/chrly/internal/profiles" + "ely.by/chrly/internal/db" + "ely.by/chrly/internal/profiles" ) type ProfilesManagerMock struct { diff --git a/internal/http/http.go b/internal/http/http.go index 783e618..cc1de21 100644 --- a/internal/http/http.go +++ b/internal/http/http.go @@ -15,8 +15,8 @@ import ( "github.com/mono83/slf" "github.com/mono83/slf/wd" - "github.com/elyby/chrly/internal/dispatcher" - v "github.com/elyby/chrly/internal/version" + "ely.by/chrly/internal/dispatcher" + v "ely.by/chrly/internal/version" ) type Emitter interface { diff --git a/internal/http/skinsystem.go b/internal/http/skinsystem.go index 5291f21..725b49d 100644 --- a/internal/http/skinsystem.go +++ b/internal/http/skinsystem.go @@ -12,9 +12,9 @@ import ( "github.com/gorilla/mux" - "github.com/elyby/chrly/internal/db" - "github.com/elyby/chrly/internal/mojang" - "github.com/elyby/chrly/internal/utils" + "ely.by/chrly/internal/db" + "ely.by/chrly/internal/mojang" + "ely.by/chrly/internal/utils" ) var timeNow = time.Now diff --git a/internal/http/skinsystem_test.go b/internal/http/skinsystem_test.go index d2ef492..24b9091 100644 --- a/internal/http/skinsystem_test.go +++ b/internal/http/skinsystem_test.go @@ -16,7 +16,7 @@ import ( testify "github.com/stretchr/testify/require" "github.com/stretchr/testify/suite" - "github.com/elyby/chrly/internal/db" + "ely.by/chrly/internal/db" ) type ProfilesProviderMock struct { diff --git a/internal/mojang/batch_uuids_provider.go b/internal/mojang/batch_uuids_provider.go index 03ec7b1..59b9b00 100644 --- a/internal/mojang/batch_uuids_provider.go +++ b/internal/mojang/batch_uuids_provider.go @@ -5,7 +5,7 @@ import ( "sync" "time" - "github.com/elyby/chrly/internal/utils" + "ely.by/chrly/internal/utils" ) type BatchUuidsProvider struct { diff --git a/internal/profiles/manager.go b/internal/profiles/manager.go index cd7a9d5..68b81f7 100644 --- a/internal/profiles/manager.go +++ b/internal/profiles/manager.go @@ -7,7 +7,7 @@ import ( "github.com/go-playground/validator/v10" - "github.com/elyby/chrly/internal/db" + "ely.by/chrly/internal/db" ) type ProfilesRepository interface { diff --git a/internal/profiles/manager_test.go b/internal/profiles/manager_test.go index 54e3f3b..08909f7 100644 --- a/internal/profiles/manager_test.go +++ b/internal/profiles/manager_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/mock" "github.com/stretchr/testify/suite" - "github.com/elyby/chrly/internal/db" + "ely.by/chrly/internal/db" ) type ProfilesRepositoryMock struct { diff --git a/internal/profiles/provider.go b/internal/profiles/provider.go index a2565b2..63e33b5 100644 --- a/internal/profiles/provider.go +++ b/internal/profiles/provider.go @@ -3,8 +3,8 @@ package profiles import ( "errors" - "github.com/elyby/chrly/internal/db" - "github.com/elyby/chrly/internal/mojang" + "ely.by/chrly/internal/db" + "ely.by/chrly/internal/mojang" ) type ProfilesFinder interface { diff --git a/internal/profiles/provider_test.go b/internal/profiles/provider_test.go index 8ebe274..4bc1839 100644 --- a/internal/profiles/provider_test.go +++ b/internal/profiles/provider_test.go @@ -8,9 +8,9 @@ import ( "github.com/stretchr/testify/mock" "github.com/stretchr/testify/suite" - "github.com/elyby/chrly/internal/db" - "github.com/elyby/chrly/internal/mojang" - "github.com/elyby/chrly/internal/utils" + "ely.by/chrly/internal/db" + "ely.by/chrly/internal/mojang" + "ely.by/chrly/internal/utils" ) type ProfilesFinderMock struct {