fix(mod): align module declaration with git URL

This commit is contained in:
Peter 2023-05-16 21:46:57 +02:00
parent 25ec63d350
commit 90b13eb5ee
Signed by: prskr
GPG key ID: C1DB5D2E8DB512F9
8 changed files with 20 additions and 13 deletions

View file

@ -1,11 +1,13 @@
package sdk package sdk
import ( import (
"code.icb4dc0.de/buildr/wasi-module-sdk/internal/mem"
rpcv1 "code.icb4dc0.de/buildr/wasi-module-sdk/protocol/generated/rpc/v1"
"context" "context"
"github.com/mailru/easyjson" "github.com/mailru/easyjson"
_ "github.com/tetratelabs/tinymem" _ "github.com/tetratelabs/tinymem"
"code.icb4dc0.de/buildr/wasi-module-sdk/mem"
rpcv1 "code.icb4dc0.de/buildr/wasi-module-sdk/protocol/generated/rpc/v1"
) )
var defaultRegistry = NewTypeRegistry() var defaultRegistry = NewTypeRegistry()

View file

@ -3,7 +3,7 @@ module hello_world
go 1.20 go 1.20
require ( require (
code.icb4dc0.de/buildr/wasi-module-sdk v0.0.0-00010101000000-000000000000 code.icb4dc0.de/buildr/wasi-module-sdk-go v0.0.0-00010101000000-000000000000
code.icb4dc0.de/buildr/wasi-module-sdk/integration v0.0.0-00010101000000-000000000000 code.icb4dc0.de/buildr/wasi-module-sdk/integration v0.0.0-00010101000000-000000000000
github.com/mailru/easyjson v0.7.7 github.com/mailru/easyjson v0.7.7
golang.org/x/exp v0.0.0-20230425010034-47ecfdc1ba53 golang.org/x/exp v0.0.0-20230425010034-47ecfdc1ba53

2
go.mod
View file

@ -1,4 +1,4 @@
module code.icb4dc0.de/buildr/wasi-module-sdk module code.icb4dc0.de/buildr/wasi-module-sdk-go
go 1.20 go 1.20

View file

@ -1,9 +1,9 @@
module code.icb4dc0.de/buildr/wasi-module-sdk/integration module code.icb4dc0.de/buildr/wasi-module-sdk-go/integration
go 1.20 go 1.20
require ( require (
code.icb4dc0.de/buildr/wasi-module-sdk v0.0.0-00010101000000-000000000000 code.icb4dc0.de/buildr/wasi-module-sdk-go v0.0.0-00010101000000-000000000000
github.com/google/uuid v1.3.0 github.com/google/uuid v1.3.0
github.com/tetratelabs/wazero v1.1.0 github.com/tetratelabs/wazero v1.1.0
golang.org/x/exp v0.0.0-20230425010034-47ecfdc1ba53 golang.org/x/exp v0.0.0-20230425010034-47ecfdc1ba53

View file

@ -1,7 +1,6 @@
package integration package integration
import ( import (
"code.icb4dc0.de/buildr/wasi-module-sdk/internal/mem"
"context" "context"
"crypto/md5" "crypto/md5"
"errors" "errors"
@ -9,13 +8,16 @@ import (
"os" "os"
"time" "time"
sdk "code.icb4dc0.de/buildr/wasi-module-sdk" "code.icb4dc0.de/buildr/wasi-module-sdk/mem"
rpcv1 "code.icb4dc0.de/buildr/wasi-module-sdk/protocol/generated/rpc/v1"
"github.com/google/uuid" "github.com/google/uuid"
"github.com/tetratelabs/wazero" "github.com/tetratelabs/wazero"
"github.com/tetratelabs/wazero/api" "github.com/tetratelabs/wazero/api"
"github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1" "github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1"
"golang.org/x/exp/slog" "golang.org/x/exp/slog"
sdk "code.icb4dc0.de/buildr/wasi-module-sdk"
rpcv1 "code.icb4dc0.de/buildr/wasi-module-sdk/protocol/generated/rpc/v1"
) )
func StateKey(cat sdk.Category, modName, key string) string { func StateKey(cat sdk.Category, modName, key string) string {

View file

@ -4,10 +4,12 @@ package sdk
import "C" import "C"
import ( import (
"code.icb4dc0.de/buildr/wasi-module-sdk/internal/mem"
rpcv1 "code.icb4dc0.de/buildr/wasi-module-sdk/protocol/generated/rpc/v1"
"context" "context"
"golang.org/x/exp/slog" "golang.org/x/exp/slog"
"code.icb4dc0.de/buildr/wasi-module-sdk/mem"
rpcv1 "code.icb4dc0.de/buildr/wasi-module-sdk/protocol/generated/rpc/v1"
) )
var _ slog.Handler = (*WASIHandler)(nil) var _ slog.Handler = (*WASIHandler)(nil)

View file

@ -1,9 +1,10 @@
package sdk package sdk
import ( import (
"code.icb4dc0.de/buildr/wasi-module-sdk/internal/mem"
rpcv1 "code.icb4dc0.de/buildr/wasi-module-sdk/protocol/generated/rpc/v1"
"errors" "errors"
"code.icb4dc0.de/buildr/wasi-module-sdk/mem"
rpcv1 "code.icb4dc0.de/buildr/wasi-module-sdk/protocol/generated/rpc/v1"
) )
type StateProxy struct { type StateProxy struct {