Skip to content

Commit f48234a

Browse files
ashraffoudaclaude
andcommitted
Migrate tfgrid-sdk-go/rmb-sdk-go -> zos_sdk_go/rmb-sdk-go@v0.18.0
Repoint the rmb-sdk-go dependency to the renamed module path (imports gofmt'd, go.mod/go.sum). go build ./... passes. Removes the last redirect dependency in zos_base and clears the transitive tfgrid-sdk-go leftover for downstream consumers. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent d799e22 commit f48234a

13 files changed

Lines changed: 15 additions & 15 deletions

File tree

client/node.go

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

7-
"github.com/threefoldtech/tfgrid-sdk-go/rmb-sdk-go"
87
"github.com/threefoldtech/zos_base/pkg"
98
"github.com/threefoldtech/zos_base/pkg/capacity/dmi"
109
"github.com/threefoldtech/zos_base/pkg/diagnostics"
1110
"github.com/threefoldtech/zos_base/pkg/gridtypes"
11+
"github.com/threefoldtech/zos_sdk_go/rmb-sdk-go"
1212
)
1313

1414
// NodeClient struct

client/node_test.go

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

7-
"github.com/threefoldtech/tfgrid-sdk-go/rmb-sdk-go"
7+
"github.com/threefoldtech/zos_sdk_go/rmb-sdk-go"
88
)
99

1010
func ExampleClient() {

go.mod

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ require (
3131
github.com/google/uuid v1.6.0
3232
github.com/gorilla/mux v1.8.0
3333
github.com/gtank/merlin v0.1.1
34-
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d
3534
github.com/hasura/go-graphql-client v0.10.0
3635
github.com/jbenet/go-base58 v0.0.0-20150317085156-6237cf65f3a6
3736
github.com/joncrlsn/dque v0.0.0-20200702023911-3e80e3146ce5
@@ -47,8 +46,8 @@ require (
4746
github.com/stretchr/testify v1.11.1
4847
github.com/threefoldtech/0-fs v1.3.1-0.20240424140157-b488dfedcc56
4948
github.com/threefoldtech/tfchain/clients/tfchain-client-go v0.0.0-20260302124210-526158ffbc00
50-
github.com/threefoldtech/tfgrid-sdk-go/rmb-sdk-go v0.17.6
5149
github.com/threefoldtech/zbus v1.0.1
50+
github.com/threefoldtech/zos_sdk_go/rmb-sdk-go v0.18.0
5251
github.com/tyler-smith/go-bip39 v1.1.0
5352
github.com/vishvananda/netlink v1.2.1-beta.2
5453
github.com/vishvananda/netns v0.0.0-20210104183010-2eb08e3e575f
@@ -79,6 +78,7 @@ require (
7978
github.com/go-logr/stdr v1.2.2 // indirect
8079
github.com/google/pprof v0.0.0-20241210010833-40e02aabc2ad // indirect
8180
github.com/hashicorp/go-cleanhttp v0.5.2 // indirect
81+
github.com/hashicorp/golang-lru v0.5.5-0.20210104140557-80c98217689d // indirect
8282
github.com/moby/sys/sequential v0.5.0 // indirect
8383
github.com/moby/sys/signal v0.7.0 // indirect
8484
github.com/moby/sys/user v0.3.0 // indirect

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -499,10 +499,10 @@ github.com/threefoldtech/0-fs v1.3.1-0.20240424140157-b488dfedcc56 h1:uWd8JfE8N3
499499
github.com/threefoldtech/0-fs v1.3.1-0.20240424140157-b488dfedcc56/go.mod h1:lZjR32SiNo3dP70inVFxaLMyZjmKX1ucS+5O31dbPNM=
500500
github.com/threefoldtech/tfchain/clients/tfchain-client-go v0.0.0-20260302124210-526158ffbc00 h1:Q/vkWlTfZBCo4SclrbpSV35sSg/EF2MIIi0LgxPdzCI=
501501
github.com/threefoldtech/tfchain/clients/tfchain-client-go v0.0.0-20260302124210-526158ffbc00/go.mod h1:cOL5YgHUmDG5SAXrsZxFjUECRQQuAqOoqvXhZG5sEUw=
502-
github.com/threefoldtech/tfgrid-sdk-go/rmb-sdk-go v0.17.6 h1:ymL6+ML2IIeMe+D6FVJkflRu7GFcDjWDE0tAIpjnSwA=
503-
github.com/threefoldtech/tfgrid-sdk-go/rmb-sdk-go v0.17.6/go.mod h1:LcdG5CnhtSHy1zuk3IeG8Fym78H55ZSngs8jxLmYPAU=
504502
github.com/threefoldtech/zbus v1.0.1 h1:3KaEpyOiDYAw+lrAyoQUGIvY9BcjVRXlQ1beBRqhRNk=
505503
github.com/threefoldtech/zbus v1.0.1/go.mod h1:E/v/xEvG/l6z/Oj0aDkuSUXFm/1RVJkhKBwDTAIdsHo=
504+
github.com/threefoldtech/zos_sdk_go/rmb-sdk-go v0.18.0 h1:CD8/yd0pAZINF93PHDODn2e+M6d5f6x6ECfpQac4kgw=
505+
github.com/threefoldtech/zos_sdk_go/rmb-sdk-go v0.18.0/go.mod h1:OI3omGvjs88MXvOKSfYULhxweQWSz6jvQuUHDTI98gw=
506506
github.com/tinylib/msgp v1.1.5 h1:2gXmtWueD2HefZHQe1QOy9HVzmFrLOVvsXwXBQ0ayy0=
507507
github.com/tinylib/msgp v1.1.5/go.mod h1:eQsjooMTnV42mHu917E26IogZ2930nFyBQdofk10Udg=
508508
github.com/tklauser/go-sysconf v0.3.12 h1:0QaGUFOdQaIVdPgfITYzaTegZvdCjmYO52cSFAEVmqU=

pkg/zos_api/deployment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"encoding/json"
66
"fmt"
77

8-
"github.com/threefoldtech/tfgrid-sdk-go/rmb-sdk-go/peer"
98
"github.com/threefoldtech/zos_base/pkg/gridtypes"
9+
"github.com/threefoldtech/zos_sdk_go/rmb-sdk-go/peer"
1010
)
1111

1212
func (g *ZosAPI) deploymentDeployHandler(ctx context.Context, payload []byte) (interface{}, error) {

pkg/zos_api/middlewares.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66

77
"github.com/rs/zerolog/log"
8-
"github.com/threefoldtech/tfgrid-sdk-go/rmb-sdk-go/peer"
8+
"github.com/threefoldtech/zos_sdk_go/rmb-sdk-go/peer"
99

1010
"github.com/threefoldtech/zos_base/pkg/environment"
1111
)

pkg/zos_api/network.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import (
66
"fmt"
77
"net"
88

9-
"github.com/threefoldtech/tfgrid-sdk-go/rmb-sdk-go/peer"
109
"github.com/threefoldtech/zos_base/pkg/gridtypes"
10+
"github.com/threefoldtech/zos_sdk_go/rmb-sdk-go/peer"
1111
)
1212

1313
func (g *ZosAPI) networkListWGPortsHandler(ctx context.Context, payload []byte) (interface{}, error) {

pkg/zos_api/routes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package zosapi
22

33
import (
4-
"github.com/threefoldtech/tfgrid-sdk-go/rmb-sdk-go/peer"
4+
"github.com/threefoldtech/zos_sdk_go/rmb-sdk-go/peer"
55
)
66

77
func (g *ZosAPI) SetupRoutes(router *peer.Router) {

pkg/zos_api_light/deployment.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import (
55
"encoding/json"
66
"fmt"
77

8-
"github.com/threefoldtech/tfgrid-sdk-go/rmb-sdk-go/peer"
98
gridtypes "github.com/threefoldtech/zos_base/pkg/gridtypes"
9+
"github.com/threefoldtech/zos_sdk_go/rmb-sdk-go/peer"
1010
)
1111

1212
func (g *ZosAPI) deploymentDeployHandler(ctx context.Context, payload []byte) (interface{}, error) {

pkg/zos_api_light/middlewares.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import (
55
"fmt"
66

77
"github.com/rs/zerolog/log"
8-
"github.com/threefoldtech/tfgrid-sdk-go/rmb-sdk-go/peer"
8+
"github.com/threefoldtech/zos_sdk_go/rmb-sdk-go/peer"
99
)
1010

1111
func (g *ZosAPI) authorized(ctx context.Context, _ []byte) (context.Context, error) {

0 commit comments

Comments
 (0)