Replace base module name from github.com/elyby/chrly to ely.by/chrly

This commit is contained in:
ErickSkrauch
2024-02-01 08:12:34 +01:00
parent 06afd17557
commit 11340289ad
29 changed files with 49 additions and 49 deletions

View File

@@ -68,7 +68,7 @@ jobs:
run: > run: >
go build go build
-trimpath -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/... -o ./chrly ./cmd/chrly/...
- name: Upload artifact - name: Upload artifact

View File

@@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"os" "os"
. "github.com/elyby/chrly/internal/cmd" . "ely.by/chrly/internal/cmd"
) )
func main() { func main() {

2
go.mod
View File

@@ -1,4 +1,4 @@
module github.com/elyby/chrly module ely.by/chrly
go 1.21 go 1.21

View File

@@ -8,9 +8,9 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/spf13/viper" "github.com/spf13/viper"
"github.com/elyby/chrly/internal/di" "ely.by/chrly/internal/di"
"github.com/elyby/chrly/internal/http" "ely.by/chrly/internal/http"
"github.com/elyby/chrly/internal/version" "ely.by/chrly/internal/version"
) )
var RootCmd = &cobra.Command{ var RootCmd = &cobra.Command{

View File

@@ -4,7 +4,7 @@ import (
"fmt" "fmt"
"log" "log"
"github.com/elyby/chrly/internal/http" "ely.by/chrly/internal/http"
"github.com/spf13/cobra" "github.com/spf13/cobra"
) )

View File

@@ -7,7 +7,7 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"github.com/elyby/chrly/internal/version" "ely.by/chrly/internal/version"
) )
var versionCmd = &cobra.Command{ var versionCmd = &cobra.Command{

View File

@@ -7,7 +7,7 @@ import (
"github.com/mediocregopher/radix/v4" "github.com/mediocregopher/radix/v4"
"github.com/elyby/chrly/internal/db" "ely.by/chrly/internal/db"
) )
const usernameToProfileKey = "hash:username-to-profile" const usernameToProfileKey = "hash:username-to-profile"

View File

@@ -15,7 +15,7 @@ import (
assert "github.com/stretchr/testify/require" assert "github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
"github.com/elyby/chrly/internal/db" "ely.by/chrly/internal/db"
) )
var redisAddr string var redisAddr string

View File

@@ -7,11 +7,11 @@ import (
"github.com/defval/di" "github.com/defval/di"
"github.com/spf13/viper" "github.com/spf13/viper"
db2 "github.com/elyby/chrly/internal/db" db2 "ely.by/chrly/internal/db"
"github.com/elyby/chrly/internal/db/redis" "ely.by/chrly/internal/db/redis"
es "github.com/elyby/chrly/internal/eventsubscribers" es "ely.by/chrly/internal/eventsubscribers"
"github.com/elyby/chrly/internal/mojang" "ely.by/chrly/internal/mojang"
"github.com/elyby/chrly/internal/profiles" "ely.by/chrly/internal/profiles"
) )
// v4 had the idea that it would be possible to separate backends for storing skins and capes. // v4 had the idea that it would be possible to separate backends for storing skins and capes.

View File

@@ -4,9 +4,9 @@ import (
"github.com/defval/di" "github.com/defval/di"
"github.com/mono83/slf" "github.com/mono83/slf"
d "github.com/elyby/chrly/internal/dispatcher" d "ely.by/chrly/internal/dispatcher"
"github.com/elyby/chrly/internal/eventsubscribers" "ely.by/chrly/internal/eventsubscribers"
"github.com/elyby/chrly/internal/http" "ely.by/chrly/internal/http"
) )
var dispatcher = di.Options( var dispatcher = di.Options(

View File

@@ -10,7 +10,7 @@ import (
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/spf13/viper" "github.com/spf13/viper"
. "github.com/elyby/chrly/internal/http" . "ely.by/chrly/internal/http"
) )
var handlers = di.Options( var handlers = di.Options(

View File

@@ -13,8 +13,8 @@ import (
"github.com/mono83/slf/wd" "github.com/mono83/slf/wd"
"github.com/spf13/viper" "github.com/spf13/viper"
"github.com/elyby/chrly/internal/eventsubscribers" "ely.by/chrly/internal/eventsubscribers"
"github.com/elyby/chrly/internal/version" "ely.by/chrly/internal/version"
) )
var logger = di.Options( var logger = di.Options(

View File

@@ -8,8 +8,8 @@ import (
"github.com/defval/di" "github.com/defval/di"
"github.com/spf13/viper" "github.com/spf13/viper"
"github.com/elyby/chrly/internal/mojang" "ely.by/chrly/internal/mojang"
"github.com/elyby/chrly/internal/profiles" "ely.by/chrly/internal/profiles"
) )
var mojangTextures = di.Options( var mojangTextures = di.Options(

View File

@@ -3,8 +3,8 @@ package di
import ( import (
"github.com/defval/di" "github.com/defval/di"
. "github.com/elyby/chrly/internal/http" . "ely.by/chrly/internal/http"
"github.com/elyby/chrly/internal/profiles" "ely.by/chrly/internal/profiles"
) )
var profilesDi = di.Options( var profilesDi = di.Options(

View File

@@ -11,7 +11,7 @@ import (
"github.com/getsentry/raven-go" "github.com/getsentry/raven-go"
"github.com/spf13/viper" "github.com/spf13/viper"
. "github.com/elyby/chrly/internal/http" . "ely.by/chrly/internal/http"
) )
var server = di.Options( var server = di.Options(

View File

@@ -7,8 +7,8 @@ import (
"errors" "errors"
"strings" "strings"
"github.com/elyby/chrly/internal/http" "ely.by/chrly/internal/http"
. "github.com/elyby/chrly/internal/signer" . "ely.by/chrly/internal/signer"
"github.com/defval/di" "github.com/defval/di"
"github.com/spf13/viper" "github.com/spf13/viper"

View File

@@ -9,7 +9,7 @@ import (
"github.com/mono83/slf/params" "github.com/mono83/slf/params"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
"github.com/elyby/chrly/internal/dispatcher" "ely.by/chrly/internal/dispatcher"
) )
type LoggerMock struct { type LoggerMock struct {

View File

@@ -8,7 +8,7 @@ import (
"github.com/mono83/slf" "github.com/mono83/slf"
"github.com/elyby/chrly/internal/dispatcher" "ely.by/chrly/internal/dispatcher"
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
) )

View File

@@ -1,6 +1,6 @@
package eventsubscribers package eventsubscribers
import "github.com/elyby/chrly/internal/dispatcher" import "ely.by/chrly/internal/dispatcher"
type Subscriber interface { type Subscriber interface {
dispatcher.Subscriber dispatcher.Subscriber

View File

@@ -6,8 +6,8 @@ import (
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/elyby/chrly/internal/db" "ely.by/chrly/internal/db"
"github.com/elyby/chrly/internal/profiles" "ely.by/chrly/internal/profiles"
) )
type ProfilesManager interface { type ProfilesManager interface {

View File

@@ -13,8 +13,8 @@ import (
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
"github.com/elyby/chrly/internal/db" "ely.by/chrly/internal/db"
"github.com/elyby/chrly/internal/profiles" "ely.by/chrly/internal/profiles"
) )
type ProfilesManagerMock struct { type ProfilesManagerMock struct {

View File

@@ -15,8 +15,8 @@ import (
"github.com/mono83/slf" "github.com/mono83/slf"
"github.com/mono83/slf/wd" "github.com/mono83/slf/wd"
"github.com/elyby/chrly/internal/dispatcher" "ely.by/chrly/internal/dispatcher"
v "github.com/elyby/chrly/internal/version" v "ely.by/chrly/internal/version"
) )
type Emitter interface { type Emitter interface {

View File

@@ -12,9 +12,9 @@ import (
"github.com/gorilla/mux" "github.com/gorilla/mux"
"github.com/elyby/chrly/internal/db" "ely.by/chrly/internal/db"
"github.com/elyby/chrly/internal/mojang" "ely.by/chrly/internal/mojang"
"github.com/elyby/chrly/internal/utils" "ely.by/chrly/internal/utils"
) )
var timeNow = time.Now var timeNow = time.Now

View File

@@ -16,7 +16,7 @@ import (
testify "github.com/stretchr/testify/require" testify "github.com/stretchr/testify/require"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
"github.com/elyby/chrly/internal/db" "ely.by/chrly/internal/db"
) )
type ProfilesProviderMock struct { type ProfilesProviderMock struct {

View File

@@ -5,7 +5,7 @@ import (
"sync" "sync"
"time" "time"
"github.com/elyby/chrly/internal/utils" "ely.by/chrly/internal/utils"
) )
type BatchUuidsProvider struct { type BatchUuidsProvider struct {

View File

@@ -7,7 +7,7 @@ import (
"github.com/go-playground/validator/v10" "github.com/go-playground/validator/v10"
"github.com/elyby/chrly/internal/db" "ely.by/chrly/internal/db"
) )
type ProfilesRepository interface { type ProfilesRepository interface {

View File

@@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
"github.com/elyby/chrly/internal/db" "ely.by/chrly/internal/db"
) )
type ProfilesRepositoryMock struct { type ProfilesRepositoryMock struct {

View File

@@ -3,8 +3,8 @@ package profiles
import ( import (
"errors" "errors"
"github.com/elyby/chrly/internal/db" "ely.by/chrly/internal/db"
"github.com/elyby/chrly/internal/mojang" "ely.by/chrly/internal/mojang"
) )
type ProfilesFinder interface { type ProfilesFinder interface {

View File

@@ -8,9 +8,9 @@ import (
"github.com/stretchr/testify/mock" "github.com/stretchr/testify/mock"
"github.com/stretchr/testify/suite" "github.com/stretchr/testify/suite"
"github.com/elyby/chrly/internal/db" "ely.by/chrly/internal/db"
"github.com/elyby/chrly/internal/mojang" "ely.by/chrly/internal/mojang"
"github.com/elyby/chrly/internal/utils" "ely.by/chrly/internal/utils"
) )
type ProfilesFinderMock struct { type ProfilesFinderMock struct {