File tree Expand file tree Collapse file tree 7 files changed +9
-10
lines changed Expand file tree Collapse file tree 7 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1- SDK_VERSION ?= v0.0.0
21CRATES_IO_VERSION := $(shell echo "${SDK_VERSION}" | tr -d 'v')
32
43bump-versions : bump-go-versions bump-rust-versions
54
65bump-go-versions :
76 @for dir in $$(ls -d *-go ) ; do \
87 cd $$ dir/content ; \
9- sed -r -i.sed-bak -e ' s%require github.com/fermyon/spin/sdk/go/v2 [-a-zA-Z0-9.]+%require github.com/fermyon/spin/sdk/go/v2 ${SDK_VERSION}%g' go.mod ; \
108 sed -i.sed-bak -e ' s/{{project-name | snake_case}}/foo/g' go.mod ; \
9+ go get -u github.com/spinframework/spin-go-sdk ; \
1110 go mod tidy ; \
1211 sed -i.sed-bak -e ' s/foo/{{project-name | snake_case}}/g' go.mod ; \
1312 rm * .sed-bak ; \
Original file line number Diff line number Diff line change @@ -2,6 +2,6 @@ module github.com/{{project-name | snake_case}}
22
33go 1.22
44
5- require github.com/fermyon /spin/sdk/go/v2 v2.2.0
5+ require github.com/spinframework /spin-go-sdk v0.0.0-20250411015808-ee0bd1e7d170
66
77require github.com/julienschmidt/httprouter v1.3.0 // indirect
Original file line number Diff line number Diff line change 1- github.com/fermyon/spin/sdk/go/v2 v2.2.0 h1:zHZdIqjbUwyxiwdygHItnM+vUUNSZ3CX43jbIUemBI4 =
2- github.com/fermyon/spin/sdk/go/v2 v2.2.0 /go.mod h1:kfJ+gdf/xIaKrsC6JHCUDYMv2Bzib1ohFIYUzvP+SCw =
31github.com/julienschmidt/httprouter v1.3.0 h1:U0609e9tgbseu3rBINet9P48AI/D3oJs4dN7jwJOQ1U =
42github.com/julienschmidt/httprouter v1.3.0 /go.mod h1:JR6WtHb+2LUe8TCKY3cZOxFyyO8IZAc4RVcycCCAKdM =
3+ github.com/spinframework/spin-go-sdk v0.0.0-20250411015808-ee0bd1e7d170 h1:juNekE6jdrv6p7WtGGBTunnz4T0KNmcFh3Ar9DLIgCQ =
4+ github.com/spinframework/spin-go-sdk v0.0.0-20250411015808-ee0bd1e7d170 /go.mod h1:e5+1n8xZksPGEpspNjTZ03vYe1qIK6Jb+k/OVja5QWU =
Original file line number Diff line number Diff line change 44 "fmt"
55 "net/http"
66
7- spinhttp "github.com/fermyon /spin/sdk/go/v2 /http"
7+ spinhttp "github.com/spinframework /spin-go-sdk /http"
88)
99
1010func init () {
Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ module github.com/{{project-name | snake_case}}
22
33go 1.22
44
5- require github.com/fermyon /spin/sdk/go/v2 v2.2.0
5+ require github.com/spinframework /spin-go-sdk v0.0.0-20250411015808-ee0bd1e7d170
Original file line number Diff line number Diff line change 1- github.com/fermyon /spin/sdk/go/v2 v2.2.0 h1:zHZdIqjbUwyxiwdygHItnM+vUUNSZ3CX43jbIUemBI4 =
2- github.com/fermyon /spin/sdk/go/v2 v2.2.0 /go.mod h1:kfJ+gdf/xIaKrsC6JHCUDYMv2Bzib1ohFIYUzvP+SCw =
1+ github.com/spinframework /spin-go-sdk v0.0.0-20250411015808-ee0bd1e7d170 h1:juNekE6jdrv6p7WtGGBTunnz4T0KNmcFh3Ar9DLIgCQ =
2+ github.com/spinframework /spin-go-sdk v0.0.0-20250411015808-ee0bd1e7d170 /go.mod h1:e5+1n8xZksPGEpspNjTZ03vYe1qIK6Jb+k/OVja5QWU =
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package main
33import (
44 "fmt"
55
6- "github.com/fermyon /spin/sdk/go/v2 /redis"
6+ "github.com/spinframework /spin-go-sdk /redis"
77)
88
99func init () {
You can’t perform that action at this time.
0 commit comments