Skip to content

Commit 3185092

Browse files
authored
Merge pull request #1984 from adamreese/fix/go-mod
fix(sdk/go): update missed v2 import paths
2 parents 1856ba8 + 3c6a079 commit 3185092

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

sdk/go/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/fermyon/spin/sdk/go
1+
module github.com/fermyon/spin/sdk/go/v2
22

33
go 1.20
44

sdk/go/http/testdata/http-tinygo/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"net/http"
66

7-
spinhttp "github.com/fermyon/spin/sdk/go/http"
7+
spinhttp "github.com/fermyon/spin/sdk/go/v2/http"
88
)
99

1010
func init() {

sdk/go/http/testdata/spin-roundtrip/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"fmt"
55
"net/http"
66

7-
spinhttp "github.com/fermyon/spin/sdk/go/http"
7+
spinhttp "github.com/fermyon/spin/sdk/go/v2/http"
88
)
99

1010
func init() {

sdk/go/integration_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func startSpin(t *testing.T, spinfile string) *testSpin {
4646

4747
url := getFreePort(t)
4848

49-
cmd := exec.CommandContext(ctx, spinBinary, "build", "--up", "--file", spinfile, "--listen", url)
49+
cmd := exec.CommandContext(ctx, spinBinary, "up", "--build", "--file", spinfile, "--listen", url)
5050
stderr := new(bytes.Buffer)
5151
cmd.Stderr = stderr
5252
if err := cmd.Start(); err != nil {

sdk/go/mysql/mysql.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"io"
99
"reflect"
1010

11-
spindb "github.com/fermyon/spin/sdk/go/internal/db"
11+
spindb "github.com/fermyon/spin/sdk/go/v2/internal/db"
1212
)
1313

1414
// Open returns a new connection to the database.

sdk/go/pg/pg.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"io"
99
"reflect"
1010

11-
spindb "github.com/fermyon/spin/sdk/go/internal/db"
11+
spindb "github.com/fermyon/spin/sdk/go/v2/internal/db"
1212
)
1313

1414
// Open returns a new connection to the database.

sdk/go/sqlite/sqlite.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
"errors"
88
"io"
99

10-
spindb "github.com/fermyon/spin/sdk/go/internal/db"
10+
spindb "github.com/fermyon/spin/sdk/go/v2/internal/db"
1111
)
1212

1313
// Open returns a new connection to the database.

0 commit comments

Comments
 (0)