From 9e0f982134ce76141d888c76fb70efa0b2f0931d Mon Sep 17 00:00:00 2001 From: Adam Reese Date: Thu, 10 Jul 2025 10:10:51 -0700 Subject: [PATCH] fix(*): update import path to v2 Signed-off-by: Adam Reese --- examples/http-outbound/hello/go.mod | 4 ++-- examples/http-outbound/hello/main.go | 2 +- examples/http-outbound/http-to-same-app/go.mod | 4 ++-- examples/http-outbound/http-to-same-app/main.go | 2 +- examples/http-router/go.mod | 4 ++-- examples/http-router/main.go | 2 +- examples/http/go.mod | 4 ++-- examples/http/main.go | 2 +- examples/key-value/go.mod | 4 ++-- examples/key-value/main.go | 4 ++-- examples/llm/go.mod | 4 ++-- examples/llm/main.go | 4 ++-- examples/mysql-outbound/go.mod | 4 ++-- examples/mysql-outbound/main.go | 4 ++-- examples/pg-outbound/go.mod | 4 ++-- examples/pg-outbound/main.go | 4 ++-- examples/redis-outbound/go.mod | 4 ++-- examples/redis-outbound/main.go | 4 ++-- examples/redis/go.mod | 4 ++-- examples/redis/main.go | 2 +- examples/sqlite/go.mod | 4 ++-- examples/sqlite/main.go | 4 ++-- examples/variables/go.mod | 4 ++-- examples/variables/main.go | 4 ++-- go.mod | 2 +- http/testdata/http-tinygo/main.go | 2 +- http/testdata/spin-roundtrip/main.go | 2 +- mysql/mysql.go | 2 +- pg/pg.go | 2 +- readme.md | 2 +- sqlite/sqlite.go | 2 +- 31 files changed, 50 insertions(+), 50 deletions(-) diff --git a/examples/http-outbound/hello/go.mod b/examples/http-outbound/hello/go.mod index 6d201f2..6d0204e 100644 --- a/examples/http-outbound/hello/go.mod +++ b/examples/http-outbound/hello/go.mod @@ -2,8 +2,8 @@ module examples/http-outbound/hello go 1.20 -require github.com/spinframework/spin-go-sdk v0.0.0 +require github.com/spinframework/spin-go-sdk/v2 v2.2.1 require github.com/julienschmidt/httprouter v1.3.0 // indirect -replace github.com/spinframework/spin-go-sdk v0.0.0 => ../../../ +replace github.com/spinframework/spin-go-sdk/v2 v2.2.1 => ../../../ diff --git a/examples/http-outbound/hello/main.go b/examples/http-outbound/hello/main.go index eb063ff..d03faa5 100644 --- a/examples/http-outbound/hello/main.go +++ b/examples/http-outbound/hello/main.go @@ -6,7 +6,7 @@ import ( "net/http" "os" - spinhttp "github.com/spinframework/spin-go-sdk/http" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" ) func init() { diff --git a/examples/http-outbound/http-to-same-app/go.mod b/examples/http-outbound/http-to-same-app/go.mod index a22e86c..3ced5b0 100644 --- a/examples/http-outbound/http-to-same-app/go.mod +++ b/examples/http-outbound/http-to-same-app/go.mod @@ -2,8 +2,8 @@ module examples/http-outbound/http-to-same-app go 1.20 -require github.com/spinframework/spin-go-sdk v0.0.0 +require github.com/spinframework/spin-go-sdk/v2 v2.2.1 require github.com/julienschmidt/httprouter v1.3.0 // indirect -replace github.com/spinframework/spin-go-sdk v0.0.0 => ../../../ +replace github.com/spinframework/spin-go-sdk/v2 v2.2.1 => ../../../ diff --git a/examples/http-outbound/http-to-same-app/main.go b/examples/http-outbound/http-to-same-app/main.go index 46a13c4..27c9c89 100644 --- a/examples/http-outbound/http-to-same-app/main.go +++ b/examples/http-outbound/http-to-same-app/main.go @@ -4,7 +4,7 @@ import ( "fmt" "net/http" - spinhttp "github.com/spinframework/spin-go-sdk/http" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" ) func init() { diff --git a/examples/http-router/go.mod b/examples/http-router/go.mod index 4cf19fc..7856c3b 100644 --- a/examples/http-router/go.mod +++ b/examples/http-router/go.mod @@ -2,8 +2,8 @@ module examples/http-router go 1.20 -require github.com/spinframework/spin-go-sdk v0.0.0 +require github.com/spinframework/spin-go-sdk/v2 v2.2.1 require github.com/julienschmidt/httprouter v1.3.0 // indirect -replace github.com/spinframework/spin-go-sdk v0.0.0 => ../../ +replace github.com/spinframework/spin-go-sdk/v2 v2.2.1 => ../../ diff --git a/examples/http-router/main.go b/examples/http-router/main.go index 604483e..3c4fd48 100644 --- a/examples/http-router/main.go +++ b/examples/http-router/main.go @@ -4,7 +4,7 @@ import ( "fmt" "net/http" - spinhttp "github.com/spinframework/spin-go-sdk/http" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" ) func init() { diff --git a/examples/http/go.mod b/examples/http/go.mod index dca13ba..c3c31c5 100644 --- a/examples/http/go.mod +++ b/examples/http/go.mod @@ -2,8 +2,8 @@ module examples/http go 1.20 -require github.com/spinframework/spin-go-sdk v0.0.0 +require github.com/spinframework/spin-go-sdk/v2 v2.2.1 require github.com/julienschmidt/httprouter v1.3.0 // indirect -replace github.com/spinframework/spin-go-sdk v0.0.0 => ../../ +replace github.com/spinframework/spin-go-sdk/v2 v2.2.1 => ../../ diff --git a/examples/http/main.go b/examples/http/main.go index bb919e4..5021281 100644 --- a/examples/http/main.go +++ b/examples/http/main.go @@ -5,7 +5,7 @@ import ( "io" "net/http" - spinhttp "github.com/spinframework/spin-go-sdk/http" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" ) func init() { diff --git a/examples/key-value/go.mod b/examples/key-value/go.mod index 40fd3656..fa7b05b 100644 --- a/examples/key-value/go.mod +++ b/examples/key-value/go.mod @@ -2,8 +2,8 @@ module examples/key-value go 1.20 -require github.com/spinframework/spin-go-sdk v0.0.0 +require github.com/spinframework/spin-go-sdk/v2 v2.2.1 require github.com/julienschmidt/httprouter v1.3.0 // indirect -replace github.com/spinframework/spin-go-sdk v0.0.0 => ../../ +replace github.com/spinframework/spin-go-sdk/v2 v2.2.1 => ../../ diff --git a/examples/key-value/main.go b/examples/key-value/main.go index dd9c6c8..b61b63d 100644 --- a/examples/key-value/main.go +++ b/examples/key-value/main.go @@ -4,8 +4,8 @@ import ( "io" "net/http" - spin_http "github.com/spinframework/spin-go-sdk/http" - "github.com/spinframework/spin-go-sdk/kv" + spin_http "github.com/spinframework/spin-go-sdk/v2/http" + "github.com/spinframework/spin-go-sdk/v2/kv" ) func init() { diff --git a/examples/llm/go.mod b/examples/llm/go.mod index 89b756e..fd0c993 100644 --- a/examples/llm/go.mod +++ b/examples/llm/go.mod @@ -2,8 +2,8 @@ module examples/llm go 1.20 -require github.com/spinframework/spin-go-sdk v0.0.0 +require github.com/spinframework/spin-go-sdk/v2 v2.2.1 require github.com/julienschmidt/httprouter v1.3.0 // indirect -replace github.com/spinframework/spin-go-sdk v0.0.0 => ../../ +replace github.com/spinframework/spin-go-sdk/v2 v2.2.1 => ../../ diff --git a/examples/llm/main.go b/examples/llm/main.go index 89b931b..55dae4e 100644 --- a/examples/llm/main.go +++ b/examples/llm/main.go @@ -4,8 +4,8 @@ import ( "fmt" "net/http" - spinhttp "github.com/spinframework/spin-go-sdk/http" - "github.com/spinframework/spin-go-sdk/llm" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" + "github.com/spinframework/spin-go-sdk/v2/llm" ) func init() { diff --git a/examples/mysql-outbound/go.mod b/examples/mysql-outbound/go.mod index ad5211c..3806168 100644 --- a/examples/mysql-outbound/go.mod +++ b/examples/mysql-outbound/go.mod @@ -2,8 +2,8 @@ module examples/mysql-outbound go 1.20 -require github.com/spinframework/spin-go-sdk v0.0.0 +require github.com/spinframework/spin-go-sdk/v2 v2.2.1 require github.com/julienschmidt/httprouter v1.3.0 // indirect -replace github.com/spinframework/spin-go-sdk v0.0.0 => ../../ +replace github.com/spinframework/spin-go-sdk/v2 v2.2.1 => ../../ diff --git a/examples/mysql-outbound/main.go b/examples/mysql-outbound/main.go index 43ec3ef..08c49e7 100644 --- a/examples/mysql-outbound/main.go +++ b/examples/mysql-outbound/main.go @@ -6,8 +6,8 @@ import ( "net/http" "os" - spinhttp "github.com/spinframework/spin-go-sdk/http" - "github.com/spinframework/spin-go-sdk/mysql" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" + "github.com/spinframework/spin-go-sdk/v2/mysql" ) type Pet struct { diff --git a/examples/pg-outbound/go.mod b/examples/pg-outbound/go.mod index 568eb65..adcf113 100644 --- a/examples/pg-outbound/go.mod +++ b/examples/pg-outbound/go.mod @@ -2,8 +2,8 @@ module examples/pg-outbound go 1.20 -require github.com/spinframework/spin-go-sdk v0.0.0 +require github.com/spinframework/spin-go-sdk/v2 v2.2.1 require github.com/julienschmidt/httprouter v1.3.0 // indirect -replace github.com/spinframework/spin-go-sdk v0.0.0 => ../../ +replace github.com/spinframework/spin-go-sdk/v2 v2.2.1 => ../../ diff --git a/examples/pg-outbound/main.go b/examples/pg-outbound/main.go index e54da6b..0f89730 100644 --- a/examples/pg-outbound/main.go +++ b/examples/pg-outbound/main.go @@ -6,8 +6,8 @@ import ( "net/http" "os" - spinhttp "github.com/spinframework/spin-go-sdk/http" - "github.com/spinframework/spin-go-sdk/pg" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" + "github.com/spinframework/spin-go-sdk/v2/pg" ) type Pet struct { diff --git a/examples/redis-outbound/go.mod b/examples/redis-outbound/go.mod index 581d90a..6cdd8e8 100644 --- a/examples/redis-outbound/go.mod +++ b/examples/redis-outbound/go.mod @@ -2,8 +2,8 @@ module examples/redis-outbound go 1.20 -require github.com/spinframework/spin-go-sdk v0.0.0 +require github.com/spinframework/spin-go-sdk/v2 v2.2.1 require github.com/julienschmidt/httprouter v1.3.0 // indirect -replace github.com/spinframework/spin-go-sdk v0.0.0 => ../../ +replace github.com/spinframework/spin-go-sdk/v2 v2.2.1 => ../../ diff --git a/examples/redis-outbound/main.go b/examples/redis-outbound/main.go index 495a907..824bdbd 100644 --- a/examples/redis-outbound/main.go +++ b/examples/redis-outbound/main.go @@ -8,8 +8,8 @@ import ( "sort" "strconv" - spin_http "github.com/spinframework/spin-go-sdk/http" - "github.com/spinframework/spin-go-sdk/redis" + spin_http "github.com/spinframework/spin-go-sdk/v2/http" + "github.com/spinframework/spin-go-sdk/v2/redis" ) func init() { diff --git a/examples/redis/go.mod b/examples/redis/go.mod index aa78940..5f777f6 100644 --- a/examples/redis/go.mod +++ b/examples/redis/go.mod @@ -2,8 +2,8 @@ module examples/redis go 1.20 -require github.com/spinframework/spin-go-sdk v0.0.0 +require github.com/spinframework/spin-go-sdk/v2 v2.2.1 require github.com/julienschmidt/httprouter v1.3.0 // indirect -replace github.com/spinframework/spin-go-sdk v0.0.0 => ../../ +replace github.com/spinframework/spin-go-sdk/v2 v2.2.1 => ../../ diff --git a/examples/redis/main.go b/examples/redis/main.go index a748add..db709a9 100644 --- a/examples/redis/main.go +++ b/examples/redis/main.go @@ -3,7 +3,7 @@ package main import ( "fmt" - "github.com/spinframework/spin-go-sdk/redis" + "github.com/spinframework/spin-go-sdk/v2/redis" ) func init() { diff --git a/examples/sqlite/go.mod b/examples/sqlite/go.mod index a4a15b3..6f24121 100644 --- a/examples/sqlite/go.mod +++ b/examples/sqlite/go.mod @@ -2,8 +2,8 @@ module examples/sqlite go 1.20 -require github.com/spinframework/spin-go-sdk v0.0.0 +require github.com/spinframework/spin-go-sdk/v2 v2.2.1 require github.com/julienschmidt/httprouter v1.3.0 // indirect -replace github.com/spinframework/spin-go-sdk v0.0.0 => ../../ +replace github.com/spinframework/spin-go-sdk/v2 v2.2.1 => ../../ diff --git a/examples/sqlite/main.go b/examples/sqlite/main.go index 41c173d..b63426c 100644 --- a/examples/sqlite/main.go +++ b/examples/sqlite/main.go @@ -5,8 +5,8 @@ import ( "fmt" "net/http" - spinhttp "github.com/spinframework/spin-go-sdk/http" - "github.com/spinframework/spin-go-sdk/sqlite" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" + "github.com/spinframework/spin-go-sdk/v2/sqlite" ) type Pet struct { diff --git a/examples/variables/go.mod b/examples/variables/go.mod index 9ba2e90..3b8d9f4 100644 --- a/examples/variables/go.mod +++ b/examples/variables/go.mod @@ -2,8 +2,8 @@ module examples/variables go 1.20 -require github.com/spinframework/spin-go-sdk v0.0.0 +require github.com/spinframework/spin-go-sdk/v2 v2.2.1 require github.com/julienschmidt/httprouter v1.3.0 // indirect -replace github.com/spinframework/spin-go-sdk v0.0.0 => ../../ +replace github.com/spinframework/spin-go-sdk/v2 v2.2.1 => ../../ diff --git a/examples/variables/main.go b/examples/variables/main.go index 8502f05..e0a4091 100644 --- a/examples/variables/main.go +++ b/examples/variables/main.go @@ -4,8 +4,8 @@ import ( "fmt" "net/http" - spinhttp "github.com/spinframework/spin-go-sdk/http" - "github.com/spinframework/spin-go-sdk/variables" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" + "github.com/spinframework/spin-go-sdk/v2/variables" ) func init() { diff --git a/go.mod b/go.mod index 8e48e17..003ac4f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/spinframework/spin-go-sdk +module github.com/spinframework/spin-go-sdk/v2 go 1.20 diff --git a/http/testdata/http-tinygo/main.go b/http/testdata/http-tinygo/main.go index 3ea9280..b5a715a 100644 --- a/http/testdata/http-tinygo/main.go +++ b/http/testdata/http-tinygo/main.go @@ -4,7 +4,7 @@ import ( "fmt" "net/http" - spinhttp "github.com/spinframework/spin-go-sdk/http" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" ) func init() { diff --git a/http/testdata/spin-roundtrip/main.go b/http/testdata/spin-roundtrip/main.go index d7d394e..d154828 100644 --- a/http/testdata/spin-roundtrip/main.go +++ b/http/testdata/spin-roundtrip/main.go @@ -4,7 +4,7 @@ import ( "fmt" "net/http" - spinhttp "github.com/spinframework/spin-go-sdk/http" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" ) func init() { diff --git a/mysql/mysql.go b/mysql/mysql.go index 8dab5d5..72b78dd 100644 --- a/mysql/mysql.go +++ b/mysql/mysql.go @@ -8,7 +8,7 @@ import ( "io" "reflect" - spindb "github.com/spinframework/spin-go-sdk/internal/db" + spindb "github.com/spinframework/spin-go-sdk/v2/internal/db" ) // Open returns a new connection to the database. diff --git a/pg/pg.go b/pg/pg.go index f93de7a..956f188 100644 --- a/pg/pg.go +++ b/pg/pg.go @@ -8,7 +8,7 @@ import ( "io" "reflect" - spindb "github.com/spinframework/spin-go-sdk/internal/db" + spindb "github.com/spinframework/spin-go-sdk/v2/internal/db" ) // Open returns a new connection to the database. diff --git a/readme.md b/readme.md index d95d632..dc34f3e 100644 --- a/readme.md +++ b/readme.md @@ -7,7 +7,7 @@ executor. ```go import ( "fmt" - spinhttp "github.com/spinframework/spin-go-sdk/http" + spinhttp "github.com/spinframework/spin-go-sdk/v2/http" ) func init() { diff --git a/sqlite/sqlite.go b/sqlite/sqlite.go index 7d63765..5f783ba 100644 --- a/sqlite/sqlite.go +++ b/sqlite/sqlite.go @@ -7,7 +7,7 @@ import ( "errors" "io" - spindb "github.com/spinframework/spin-go-sdk/internal/db" + spindb "github.com/spinframework/spin-go-sdk/v2/internal/db" ) // Open returns a new connection to the database.