migrate: move module path to git.anygate.cloud/anygatecloud/strom
Go / build (push) Failing after 9s

This commit is contained in:
OpenCode
2026-08-06 15:43:20 +02:00
parent ac12f5c93b
commit 78442c5c68
97 changed files with 294 additions and 264 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
package api
import (
"github.com/admin-else/strom/mc/crypto"
"git.anygate.cloud/anygatecloud/strom/mc/crypto"
)
// NewOfflineAccount creates an offline-mode Account with a UUID derived from the
+4 -4
View File
@@ -12,10 +12,10 @@ import (
"fmt"
"time"
"github.com/admin-else/strom/mc/api"
"github.com/admin-else/strom/mc/proto"
"github.com/admin-else/strom/mc/proto_generated/v1_21_11"
"github.com/admin-else/strom/mc/proto_generated/v1_8"
"git.anygate.cloud/anygatecloud/strom/mc/api"
"git.anygate.cloud/anygatecloud/strom/mc/proto"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_11"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_8"
"github.com/google/uuid"
)
+2 -2
View File
@@ -1,8 +1,8 @@
package keepalive
import (
"github.com/admin-else/strom/mc/proto"
"github.com/admin-else/strom/mc/proto_generated/v1_21_8"
"git.anygate.cloud/anygatecloud/strom/mc/proto"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_8"
)
type mod struct {
+3 -3
View File
@@ -5,9 +5,9 @@ import (
"errors"
"sync"
"github.com/admin-else/strom/mc/level"
"github.com/admin-else/strom/mc/proto"
"github.com/admin-else/strom/mc/proto_generated/v1_21_11"
"git.anygate.cloud/anygatecloud/strom/mc/level"
"git.anygate.cloud/anygatecloud/strom/mc/proto"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_11"
)
var (
+4 -4
View File
@@ -5,10 +5,10 @@ import (
"errors"
"net"
"github.com/admin-else/strom/mc/data"
"github.com/admin-else/strom/mc/proto"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/server"
"git.anygate.cloud/anygatecloud/strom/mc/data"
"git.anygate.cloud/anygatecloud/strom/mc/proto"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/server"
)
// Connect connects to the given address note that it does not resolve the SRV records it's just a raw net.Dial
+4 -4
View File
@@ -4,10 +4,10 @@ import (
"errors"
"fmt"
"github.com/admin-else/strom/mc/event"
"github.com/admin-else/strom/mc/proto"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/proto_generated/v1_21_8"
"git.anygate.cloud/anygatecloud/strom/mc/event"
"git.anygate.cloud/anygatecloud/strom/mc/proto"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_8"
)
type ConfigIgnorer struct {
+3 -3
View File
@@ -4,9 +4,9 @@ import (
"net"
"strconv"
"github.com/admin-else/strom/mc/proto"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/proto_generated/v1_21_8"
"git.anygate.cloud/anygatecloud/strom/mc/proto"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_8"
)
// MakeHandshakePacket creates a handshake packet using the connection's remote address as the server host.
+10 -10
View File
@@ -9,16 +9,16 @@ import (
"errors"
"net"
"github.com/admin-else/strom/mc/api"
"github.com/admin-else/strom/mc/crypto"
"github.com/admin-else/strom/mc/event"
"github.com/admin-else/strom/mc/proto"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/proto_generated/v1_16_5"
"github.com/admin-else/strom/mc/proto_generated/v1_21_8"
"github.com/admin-else/strom/mc/proto_generated/v1_8"
"github.com/admin-else/strom/mc/proto_generated/v26_2"
"github.com/admin-else/strom/mc/text"
"git.anygate.cloud/anygatecloud/strom/mc/api"
"git.anygate.cloud/anygatecloud/strom/mc/crypto"
"git.anygate.cloud/anygatecloud/strom/mc/event"
"git.anygate.cloud/anygatecloud/strom/mc/proto"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_16_5"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_8"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_8"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v26_2"
"git.anygate.cloud/anygatecloud/strom/mc/text"
"github.com/google/uuid"
)
+4 -4
View File
@@ -4,10 +4,10 @@ import (
"reflect"
"testing"
"github.com/admin-else/strom/mc/data"
"github.com/admin-else/strom/mc/proto"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/proto_generated/v1_21_8"
"git.anygate.cloud/anygatecloud/strom/mc/data"
"git.anygate.cloud/anygatecloud/strom/mc/proto"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_8"
)
func assertClientSendConvertible(t *testing.T, srcType reflect.Type, name string, state proto_base.State, direction proto_base.Direction, targetVersion int32) {
+6 -6
View File
@@ -5,12 +5,12 @@ import (
"encoding/json"
"time"
"github.com/admin-else/strom/mc/event"
"github.com/admin-else/strom/mc/proto"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/proto_generated/v1_21_8"
"github.com/admin-else/strom/mc/proto_generated/v1_8"
"github.com/admin-else/strom/mc/server"
"git.anygate.cloud/anygatecloud/strom/mc/event"
"git.anygate.cloud/anygatecloud/strom/mc/proto"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_8"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_8"
"git.anygate.cloud/anygatecloud/strom/mc/server"
)
type StatusClient struct {
+1 -1
View File
@@ -3,7 +3,7 @@ package data_test
import (
"testing"
"github.com/admin-else/strom/mc/data"
"git.anygate.cloud/anygatecloud/strom/mc/data"
)
func TestLookupBiomeById(t *testing.T) {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"slices"
"strconv"
"github.com/admin-else/strom/mc/util"
"git.anygate.cloud/anygatecloud/strom/mc/util"
)
// {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"fmt"
"testing"
"github.com/admin-else/strom/mc/data"
"git.anygate.cloud/anygatecloud/strom/mc/data"
)
func TestLookupBlockByStateId(t *testing.T) {
+1 -1
View File
@@ -3,7 +3,7 @@ package data_test
import (
"testing"
"github.com/admin-else/strom/mc/data"
"git.anygate.cloud/anygatecloud/strom/mc/data"
)
func TestLookUpProtocolVersion(t *testing.T) {
+1 -1
View File
@@ -3,7 +3,7 @@ package data
import (
"embed"
nbt2 "github.com/admin-else/strom/mc/nbt"
nbt2 "git.anygate.cloud/anygatecloud/strom/mc/nbt"
)
// TODO: this is stupid loginPacket.json exists next version migrate to that
+1 -1
View File
@@ -3,7 +3,7 @@ package gen
import (
"math"
"github.com/admin-else/strom/mc/data"
"git.anygate.cloud/anygatecloud/strom/mc/data"
)
type NoiseParam int
+1 -1
View File
@@ -3,7 +3,7 @@ package gen
import (
"testing"
"github.com/admin-else/strom/mc/data"
"git.anygate.cloud/anygatecloud/strom/mc/data"
)
func TestBiomeNoise_SampleBiome(t *testing.T) {
+2 -2
View File
@@ -1,8 +1,8 @@
package anvil_test
import (
"github.com/admin-else/strom/mc/nbt"
"github.com/admin-else/strom/mc/proto_generated/v1_21_11"
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_11"
)
// in seperate file not to lag my ide
+3 -3
View File
@@ -4,9 +4,9 @@ import (
"strings"
"unsafe"
data2 "github.com/admin-else/strom/mc/data"
level2 "github.com/admin-else/strom/mc/level"
"github.com/admin-else/strom/mc/util"
data2 "git.anygate.cloud/anygatecloud/strom/mc/data"
level2 "git.anygate.cloud/anygatecloud/strom/mc/level"
"git.anygate.cloud/anygatecloud/strom/mc/util"
)
type Chunk struct {
+1 -1
View File
@@ -3,7 +3,7 @@ package anvil
import (
"io"
"github.com/admin-else/strom/mc/nbt"
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
)
type Level struct {
+3 -3
View File
@@ -7,9 +7,9 @@ import (
"os"
"testing"
"github.com/admin-else/strom/mc/level"
anvil2 "github.com/admin-else/strom/mc/level/anvil"
"github.com/admin-else/strom/mc/util"
"git.anygate.cloud/anygatecloud/strom/mc/level"
anvil2 "git.anygate.cloud/anygatecloud/strom/mc/level/anvil"
"git.anygate.cloud/anygatecloud/strom/mc/util"
)
func TestLevel(t *testing.T) {
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"io"
"os"
"github.com/admin-else/strom/mc/nbt"
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
)
type CompressionStrategy uint8
+4 -4
View File
@@ -7,10 +7,10 @@ import (
"strings"
"unsafe"
data2 "github.com/admin-else/strom/mc/data"
"github.com/admin-else/strom/mc/level"
"github.com/admin-else/strom/mc/nbt"
"github.com/admin-else/strom/mc/util"
data2 "git.anygate.cloud/anygatecloud/strom/mc/data"
"git.anygate.cloud/anygatecloud/strom/mc/level"
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
"git.anygate.cloud/anygatecloud/strom/mc/util"
"github.com/go-viper/mapstructure/v2"
)
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"embed"
"testing"
data2 "github.com/admin-else/strom/mc/data"
"github.com/admin-else/strom/mc/level/litematic"
data2 "git.anygate.cloud/anygatecloud/strom/mc/data"
"git.anygate.cloud/anygatecloud/strom/mc/level/litematic"
)
//go:embed testdata
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"bytes"
"testing"
"github.com/admin-else/strom/mc/level"
"git.anygate.cloud/anygatecloud/strom/mc/level"
)
func FuzzReadChunkFromChunkPacketData(f *testing.F) {
+3 -3
View File
@@ -7,9 +7,9 @@ import (
"log/slog"
"math"
data2 "github.com/admin-else/strom/mc/data"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/util"
data2 "git.anygate.cloud/anygatecloud/strom/mc/data"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/util"
)
type BlockState struct {
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"math"
"slices"
"github.com/admin-else/strom/mc/util"
"git.anygate.cloud/anygatecloud/strom/mc/util"
)
type StorageFormat struct {
+1 -1
View File
@@ -3,7 +3,7 @@ package level_test
import (
"testing"
"github.com/admin-else/strom/mc/level"
"git.anygate.cloud/anygatecloud/strom/mc/level"
)
func heightmapFormat() level.StorageFormat {
+1 -1
View File
@@ -1,7 +1,7 @@
package structure
import (
"github.com/admin-else/strom/mc/nbt"
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
"github.com/go-viper/mapstructure/v2"
)
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"fmt"
"reflect"
"github.com/admin-else/strom/mc/util"
"git.anygate.cloud/anygatecloud/strom/mc/util"
)
func (f *Format) decode(m map[string]any, target reflect.Value) error {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"io"
"os"
"github.com/admin-else/strom/mc/mapstructure"
"git.anygate.cloud/anygatecloud/strom/mc/mapstructure"
)
var Format = mapstructure.NewFormat("nbt", mapstructure.WithRequireAll(), mapstructure.WithTrySnakeCase(), mapstructure.WithTryLowCase())
+4 -4
View File
@@ -12,10 +12,10 @@ import (
"strings"
"sync"
"github.com/admin-else/strom/mc/data"
"github.com/admin-else/strom/mc/event"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/proto_generated"
"git.anygate.cloud/anygatecloud/strom/mc/data"
"git.anygate.cloud/anygatecloud/strom/mc/event"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated"
)
const (
+3 -3
View File
@@ -5,9 +5,9 @@ import (
"math"
"testing"
"github.com/admin-else/strom/mc/data"
"github.com/admin-else/strom/mc/proto"
"github.com/admin-else/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/data"
"git.anygate.cloud/anygatecloud/strom/mc/proto"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts"
)
+4 -4
View File
@@ -6,10 +6,10 @@ import (
"strings"
"testing"
"github.com/admin-else/strom/mc/data"
"github.com/admin-else/strom/mc/proto"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/proto_generated"
"git.anygate.cloud/anygatecloud/strom/mc/data"
"git.anygate.cloud/anygatecloud/strom/mc/proto"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated"
)
func TestPacketRoundTripAllVersions(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package proto
import (
"reflect"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/proto_generated"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated"
)
type PidEtc struct {
+2 -2
View File
@@ -10,8 +10,8 @@ import (
"net"
"sync"
"github.com/admin-else/strom/mc/crypto"
"github.com/admin-else/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/crypto"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
)
type RawConn struct {
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"io"
"reflect"
proto2 "github.com/admin-else/strom/mc/proto"
"github.com/admin-else/strom/mc/proto_base"
proto2 "git.anygate.cloud/anygatecloud/strom/mc/proto"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
)
type Reader struct {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"encoding/binary"
"io"
proto2 "github.com/admin-else/strom/mc/proto"
"github.com/admin-else/strom/mc/proto_base"
proto2 "git.anygate.cloud/anygatecloud/strom/mc/proto"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
)
type Writer struct {
+4 -4
View File
@@ -5,10 +5,10 @@ import (
"reflect"
"slices"
"github.com/admin-else/strom/mc/data"
"github.com/admin-else/strom/mc/event"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/proto_generated"
"git.anygate.cloud/anygatecloud/strom/mc/data"
"git.anygate.cloud/anygatecloud/strom/mc/event"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated"
)
// SmartConvertibleTo reports whether a value of type from can be recursively converted to type to.
+5 -5
View File
@@ -4,11 +4,11 @@ import (
"reflect"
"testing"
proto2 "github.com/admin-else/strom/mc/proto"
"github.com/admin-else/strom/mc/proto_generated/v1_21_11"
"github.com/admin-else/strom/mc/proto_generated/v1_21_8"
"github.com/admin-else/strom/mc/proto_generated/v1_21_9"
"github.com/admin-else/strom/mc/proto_generated/v26_2"
proto2 "git.anygate.cloud/anygatecloud/strom/mc/proto"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_11"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_8"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_9"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v26_2"
)
func TestCanSmartConvert(t *testing.T) {
+10 -10
View File
@@ -1,16 +1,16 @@
package proto_generated
import (
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/proto_generated/v1_8"
"github.com/admin-else/strom/mc/proto_generated/v1_12_2"
"github.com/admin-else/strom/mc/proto_generated/v1_14_4"
"github.com/admin-else/strom/mc/proto_generated/v1_16_5"
"github.com/admin-else/strom/mc/proto_generated/v1_21_8"
"github.com/admin-else/strom/mc/proto_generated/v1_21_9"
"github.com/admin-else/strom/mc/proto_generated/v1_21_11"
"github.com/admin-else/strom/mc/proto_generated/v26_1"
"github.com/admin-else/strom/mc/proto_generated/v26_2"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_8"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_12_2"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_14_4"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_16_5"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_8"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_9"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_11"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v26_1"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v26_2"
)
var SupportedVersions = []string{"1.8", "1.12.2", "1.14.4", "1.16.5", "1.21.8", "1.21.9", "1.21.11", "26.1", "26.2"}
+2 -2
View File
@@ -6,8 +6,8 @@ package v1_12_2
import (
"encoding/binary"
"io"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/nbt"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
"github.com/google/uuid"
)
+2 -2
View File
@@ -6,8 +6,8 @@ package v1_14_4
import (
"encoding/binary"
"io"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/nbt"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
"github.com/google/uuid"
)
+2 -2
View File
@@ -6,8 +6,8 @@ package v1_16_5
import (
"encoding/binary"
"io"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/nbt"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
"github.com/google/uuid"
)
+2 -2
View File
@@ -6,8 +6,8 @@ package v1_21_11
import (
"encoding/binary"
"io"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/nbt"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
"github.com/google/uuid"
)
+2 -2
View File
@@ -6,8 +6,8 @@ package v1_21_8
import (
"encoding/binary"
"io"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/nbt"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
"github.com/google/uuid"
)
+2 -2
View File
@@ -6,8 +6,8 @@ package v1_21_9
import (
"encoding/binary"
"io"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/nbt"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
"github.com/google/uuid"
)
+2 -2
View File
@@ -6,8 +6,8 @@ package v1_8
import (
"encoding/binary"
"io"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/nbt"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
"github.com/google/uuid"
)
+2 -2
View File
@@ -6,8 +6,8 @@ package v26_1
import (
"encoding/binary"
"io"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/nbt"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
"github.com/google/uuid"
)
+2 -2
View File
@@ -6,8 +6,8 @@ package v26_2
import (
"encoding/binary"
"io"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/nbt"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
"github.com/google/uuid"
)
+2 -2
View File
@@ -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...))
+3 -3
View File
@@ -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()
+2 -2
View File
@@ -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"
)
+2 -2
View File
@@ -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"
)
+2 -2
View File
@@ -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"
)
+2 -2
View File
@@ -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"
)
+6 -6
View File
@@ -1,12 +1,12 @@
package server
import (
"github.com/admin-else/strom/mc/data"
"github.com/admin-else/strom/mc/event"
"github.com/admin-else/strom/mc/nbt"
"github.com/admin-else/strom/mc/proto"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/proto_generated/v1_21_8"
"git.anygate.cloud/anygatecloud/strom/mc/data"
"git.anygate.cloud/anygatecloud/strom/mc/event"
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
"git.anygate.cloud/anygatecloud/strom/mc/proto"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_8"
)
type ConfigServer struct {
+5 -5
View File
@@ -5,11 +5,11 @@ import (
"fmt"
"github.com/admin-else/strom/mc/nbt"
"github.com/admin-else/strom/mc/proto"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/proto_generated/v1_21_8"
"github.com/admin-else/strom/mc/text"
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
"git.anygate.cloud/anygatecloud/strom/mc/proto"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_8"
"git.anygate.cloud/anygatecloud/strom/mc/text"
)
var (
+8 -8
View File
@@ -10,14 +10,14 @@ import (
"log/slog"
"slices"
api2 "github.com/admin-else/strom/mc/api"
"github.com/admin-else/strom/mc/crypto"
"github.com/admin-else/strom/mc/data"
"github.com/admin-else/strom/mc/event"
"github.com/admin-else/strom/mc/proto"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/proto_generated/v1_21_8"
"github.com/admin-else/strom/mc/proto_generated/v26_2"
api2 "git.anygate.cloud/anygatecloud/strom/mc/api"
"git.anygate.cloud/anygatecloud/strom/mc/crypto"
"git.anygate.cloud/anygatecloud/strom/mc/data"
"git.anygate.cloud/anygatecloud/strom/mc/event"
"git.anygate.cloud/anygatecloud/strom/mc/proto"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_8"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v26_2"
"github.com/google/uuid"
)
+4 -4
View File
@@ -4,10 +4,10 @@ import (
"reflect"
"testing"
"github.com/admin-else/strom/mc/data"
"github.com/admin-else/strom/mc/proto"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/proto_generated/v1_21_8"
"git.anygate.cloud/anygatecloud/strom/mc/data"
"git.anygate.cloud/anygatecloud/strom/mc/proto"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_8"
)
func assertSendConvertible(t *testing.T, srcType reflect.Type, name string, state proto_base.State, direction proto_base.Direction, targetVersion int32) {
+3 -3
View File
@@ -5,9 +5,9 @@ import (
"net"
"sync/atomic"
"github.com/admin-else/strom/mc/proto"
"github.com/admin-else/strom/mc/proto_base"
"github.com/admin-else/strom/mc/text"
"git.anygate.cloud/anygatecloud/strom/mc/proto"
"git.anygate.cloud/anygatecloud/strom/mc/proto_base"
"git.anygate.cloud/anygatecloud/strom/mc/text"
)
// Servee wraps a net.Conn in a new proto.Conn configured for the servee side.
+3 -3
View File
@@ -3,9 +3,9 @@ package server
import (
"encoding/json"
"github.com/admin-else/strom/mc/proto"
"github.com/admin-else/strom/mc/proto_generated/v1_21_8"
"github.com/admin-else/strom/mc/text"
"git.anygate.cloud/anygatecloud/strom/mc/proto"
"git.anygate.cloud/anygatecloud/strom/mc/proto_generated/v1_21_8"
"git.anygate.cloud/anygatecloud/strom/mc/text"
)
// These are separate types so a status definition looks less ugly
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"fmt"
"strings"
"github.com/admin-else/strom/mc/nbt"
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
)
// FIXME: this should use the mapstruct thing
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"reflect"
"testing"
"github.com/admin-else/strom/mc/nbt"
"git.anygate.cloud/anygatecloud/strom/mc/nbt"
"github.com/google/go-cmp/cmp"
)
+1 -1
View File
@@ -3,7 +3,7 @@ package util_test
import (
"testing"
"github.com/admin-else/strom/mc/util"
"git.anygate.cloud/anygatecloud/strom/mc/util"
)
func TestCamelCase(t *testing.T) {