migrate: move module path to git.anygate.cloud/anygatecloud/strom
Go / build (push) Failing after 9s
Go / build (push) Failing after 9s
This commit is contained in:
@@ -21,10 +21,10 @@ type PacketInfo struct {
|
||||
|
||||
func GeneratePacketInfoFile(versions []string, packetInfos []PacketInfo) (err error) {
|
||||
f := NewFile("proto_generated")
|
||||
imports := []string{"github.com/admin-else/strom/mc/proto_base"}
|
||||
imports := []string{"git.anygate.cloud/anygatecloud/strom/mc/proto_base"}
|
||||
for _, v := range versions {
|
||||
vUnderscore := strings.ReplaceAll(v, ".", "_")
|
||||
imports = append(imports, "github.com/admin-else/strom/mc/proto_generated/v"+vUnderscore)
|
||||
imports = append(imports, "git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v"+vUnderscore)
|
||||
}
|
||||
AppendDecl(f, Import(imports...))
|
||||
|
||||
|
||||
@@ -14,8 +14,8 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
data2 "github.com/admin-else/strom/mc/data"
|
||||
util2 "github.com/admin-else/strom/mc/util"
|
||||
data2 "git.anygate.cloud/anygatecloud/strom/mc/data"
|
||||
util2 "git.anygate.cloud/anygatecloud/strom/mc/util"
|
||||
)
|
||||
|
||||
var ToDoError = errors.New("to do")
|
||||
@@ -453,7 +453,7 @@ func Generate(version string, w io.Writer, sourceHash string) (packetInfos []Pac
|
||||
sourcePath, sourceHash, toolVersion, goVersion)
|
||||
AddFileComment(g.File, comment)
|
||||
|
||||
AppendDecl(g.File, Import("encoding/binary", "io", "github.com/admin-else/strom/mc/proto_base", "github.com/admin-else/strom/mc/nbt", "github.com/google/uuid"))
|
||||
AppendDecl(g.File, Import("encoding/binary", "io", "git.anygate.cloud/anygatecloud/strom/mc/proto_base", "git.anygate.cloud/anygatecloud/strom/mc/nbt", "github.com/google/uuid"))
|
||||
g.RegisterNatives()
|
||||
g.RegisterDecoderNatives()
|
||||
g.RegisterEncoderNatives()
|
||||
|
||||
@@ -6,8 +6,8 @@ import (
|
||||
"go/ast"
|
||||
"strings"
|
||||
|
||||
"github.com/admin-else/strom/mc/proto_generator/protodef"
|
||||
util2 "github.com/admin-else/strom/mc/util"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generator/protodef"
|
||||
util2 "git.anygate.cloud/anygatecloud/strom/mc/util"
|
||||
"github.com/go-viper/mapstructure/v2"
|
||||
)
|
||||
|
||||
|
||||
@@ -7,8 +7,8 @@ import (
|
||||
"slices"
|
||||
"strconv"
|
||||
|
||||
"github.com/admin-else/strom/mc/proto_generator/protodef"
|
||||
util2 "github.com/admin-else/strom/mc/util"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generator/protodef"
|
||||
util2 "git.anygate.cloud/anygatecloud/strom/mc/util"
|
||||
"github.com/go-viper/mapstructure/v2"
|
||||
)
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"go/token"
|
||||
"slices"
|
||||
|
||||
"github.com/admin-else/strom/mc/proto_generator/protodef"
|
||||
util2 "github.com/admin-else/strom/mc/util"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generator/protodef"
|
||||
util2 "git.anygate.cloud/anygatecloud/strom/mc/util"
|
||||
"github.com/go-viper/mapstructure/v2"
|
||||
)
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@ import (
|
||||
"fmt"
|
||||
"go/ast"
|
||||
|
||||
"github.com/admin-else/strom/mc/proto_generator/protodef"
|
||||
"github.com/admin-else/strom/mc/util"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/proto_generator/protodef"
|
||||
"git.anygate.cloud/anygatecloud/strom/mc/util"
|
||||
"github.com/go-viper/mapstructure/v2"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user