From 260d06fa9fde77f1314ca837adc7e6d65de23ded Mon Sep 17 00:00:00 2001 From: Jesse Schmidt Date: Wed, 19 Jun 2024 12:30:05 -0700 Subject: [PATCH] rename --- .golangci.yml | 2 +- cmd/createIndex.go | 4 ++-- cmd/dropIndex.go | 2 +- cmd/flags/distanceMetric.go | 2 +- cmd/flags/hostPort.go | 2 +- cmd/flags/hostPort_test.go | 2 +- cmd/listIndex.go | 4 ++-- cmd/utils.go | 2 +- cmd/utils_test.go | 2 +- cmd/view.go | 2 +- cmd/writers/indexList.go | 2 +- e2e_test.go | 4 ++-- go.mod | 6 +++--- go.sum | 8 -------- test_utils.go | 2 +- 15 files changed, 19 insertions(+), 27 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 32c6591..9099fa8 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -23,7 +23,7 @@ linters-settings: allow: - $gostd - github.com/aerospike/tools-common-go - - github.com/aerospike/aerospike-proximus-client-go + - github.com/aerospike/avs-client-go - asvec/cmd - github.com/spf13/cobra - github.com/spf13/viper diff --git a/cmd/createIndex.go b/cmd/createIndex.go index cb4a381..453a3bf 100644 --- a/cmd/createIndex.go +++ b/cmd/createIndex.go @@ -11,8 +11,8 @@ import ( "strings" "time" - avs "github.com/aerospike/aerospike-proximus-client-go" - "github.com/aerospike/aerospike-proximus-client-go/protos" + avs "github.com/aerospike/avs-client-go" + "github.com/aerospike/avs-client-go/protos" commonFlags "github.com/aerospike/tools-common-go/flags" "github.com/spf13/cobra" "github.com/spf13/pflag" diff --git a/cmd/dropIndex.go b/cmd/dropIndex.go index 6ddfcd1..f638a10 100644 --- a/cmd/dropIndex.go +++ b/cmd/dropIndex.go @@ -10,7 +10,7 @@ import ( "log/slog" "time" - avs "github.com/aerospike/aerospike-proximus-client-go" + avs "github.com/aerospike/avs-client-go" commonFlags "github.com/aerospike/tools-common-go/flags" "github.com/spf13/cobra" "github.com/spf13/pflag" diff --git a/cmd/flags/distanceMetric.go b/cmd/flags/distanceMetric.go index 78d332e..f19b5d1 100644 --- a/cmd/flags/distanceMetric.go +++ b/cmd/flags/distanceMetric.go @@ -5,7 +5,7 @@ import ( "slices" "strings" - "github.com/aerospike/aerospike-proximus-client-go/protos" + "github.com/aerospike/avs-client-go/protos" ) type DistanceMetricFlag string diff --git a/cmd/flags/hostPort.go b/cmd/flags/hostPort.go index 638dadf..0d7203f 100644 --- a/cmd/flags/hostPort.go +++ b/cmd/flags/hostPort.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - avs "github.com/aerospike/aerospike-proximus-client-go" + avs "github.com/aerospike/avs-client-go" ) const ( diff --git a/cmd/flags/hostPort_test.go b/cmd/flags/hostPort_test.go index 1b14406..50d787a 100644 --- a/cmd/flags/hostPort_test.go +++ b/cmd/flags/hostPort_test.go @@ -5,7 +5,7 @@ package flags import ( "testing" - avs "github.com/aerospike/aerospike-proximus-client-go" + avs "github.com/aerospike/avs-client-go" "github.com/stretchr/testify/suite" ) diff --git a/cmd/listIndex.go b/cmd/listIndex.go index d294caf..c714ddd 100644 --- a/cmd/listIndex.go +++ b/cmd/listIndex.go @@ -11,8 +11,8 @@ import ( "sync" "time" - avs "github.com/aerospike/aerospike-proximus-client-go" - "github.com/aerospike/aerospike-proximus-client-go/protos" + avs "github.com/aerospike/avs-client-go" + "github.com/aerospike/avs-client-go/protos" commonFlags "github.com/aerospike/tools-common-go/flags" "github.com/spf13/cobra" "github.com/spf13/pflag" diff --git a/cmd/utils.go b/cmd/utils.go index e33b22c..a0d0e9e 100644 --- a/cmd/utils.go +++ b/cmd/utils.go @@ -7,7 +7,7 @@ import ( "encoding/pem" "fmt" - avs "github.com/aerospike/aerospike-proximus-client-go" + avs "github.com/aerospike/avs-client-go" ) func newTLSConfig(rootCA [][]byte, cert []byte, key []byte, keyPass []byte, tlsProtoMin int, tlsProtoMax int) (*tls.Config, error) { diff --git a/cmd/utils_test.go b/cmd/utils_test.go index 53c8a84..cbf7039 100644 --- a/cmd/utils_test.go +++ b/cmd/utils_test.go @@ -6,7 +6,7 @@ import ( "asvec/cmd/flags" "testing" - avs "github.com/aerospike/aerospike-proximus-client-go" + avs "github.com/aerospike/avs-client-go" "github.com/stretchr/testify/assert" ) diff --git a/cmd/view.go b/cmd/view.go index c3cbb14..c3ccc59 100644 --- a/cmd/view.go +++ b/cmd/view.go @@ -6,7 +6,7 @@ import ( "io" "log/slog" - "github.com/aerospike/aerospike-proximus-client-go/protos" + "github.com/aerospike/avs-client-go/protos" ) type View struct { diff --git a/cmd/writers/indexList.go b/cmd/writers/indexList.go index da07d78..b854a6c 100644 --- a/cmd/writers/indexList.go +++ b/cmd/writers/indexList.go @@ -4,7 +4,7 @@ import ( "io" "log/slog" - "github.com/aerospike/aerospike-proximus-client-go/protos" + "github.com/aerospike/avs-client-go/protos" "github.com/jedib0t/go-pretty/v6/table" ) diff --git a/e2e_test.go b/e2e_test.go index 7a8f725..05d4529 100644 --- a/e2e_test.go +++ b/e2e_test.go @@ -19,8 +19,8 @@ import ( "testing" "time" - avs "github.com/aerospike/aerospike-proximus-client-go" - "github.com/aerospike/aerospike-proximus-client-go/protos" + avs "github.com/aerospike/avs-client-go" + "github.com/aerospike/avs-client-go/protos" "github.com/stretchr/testify/suite" ) diff --git a/go.mod b/go.mod index a9f8493..7d81a6c 100644 --- a/go.mod +++ b/go.mod @@ -2,12 +2,12 @@ module asvec go 1.21.7 -// replace github.com/aerospike/aerospike-proximus-client-go => /Users/jesseschmidt/Developer/aerospike-proximus-client-go +replace github.com/aerospike/avs-client-go => /Users/jesseschmidt/Developer/avs-client-go -// replace github.com/aerospike/tools-common-go => /Users/jesseschmidt/Developer/tools-common-go +replace github.com/aerospike/tools-common-go => /Users/jesseschmidt/Developer/tools-common-go require ( - github.com/aerospike/aerospike-proximus-client-go v0.0.0-20240618165139-d1f0bb1968a5 + github.com/aerospike/avs-client-go v0.0.0-20240509004238-aa3172c86d65 github.com/aerospike/tools-common-go v0.0.0-20240618165632-595098741f89 github.com/jedib0t/go-pretty/v6 v6.5.9 github.com/spf13/cobra v1.8.0 diff --git a/go.sum b/go.sum index a0cec2d..4f7b347 100644 --- a/go.sum +++ b/go.sum @@ -2,14 +2,6 @@ github.com/Microsoft/go-winio v0.6.2 h1:F2VQgta7ecxGYO8k3ZZz3RS8fVIXVxONVUPlNERo github.com/Microsoft/go-winio v0.6.2/go.mod h1:yd8OoFMLzJbo9gZq8j5qaps8bJ9aShtEA8Ipt1oGCvU= github.com/aerospike/aerospike-client-go/v7 v7.4.0 h1:g8/7v8RHhQhTArhW3C7Au7o+u8j8x5eySZL6MXfpHKU= github.com/aerospike/aerospike-client-go/v7 v7.4.0/go.mod h1:pPKnWiS8VDJcH4IeB1b8SA2TWnkjcVLHwAAJ+BHfGK8= -github.com/aerospike/aerospike-proximus-client-go v0.0.0-20240603230632-86a0ebaa8aa9 h1:qVpPCrbp0pNNmP1CPqln6HkzhVmFmOOVZYLq4IDlidI= -github.com/aerospike/aerospike-proximus-client-go v0.0.0-20240603230632-86a0ebaa8aa9/go.mod h1:N0kxd4FoYDbLOEwm8vWH6wKUkoR5v0Wp/v0+tUqoUMg= -github.com/aerospike/aerospike-proximus-client-go v0.0.0-20240618165139-d1f0bb1968a5 h1:OfqJsUs8T8DaYqDLyZwXDY55FvWtyVybbm2mc3Pi+1s= -github.com/aerospike/aerospike-proximus-client-go v0.0.0-20240618165139-d1f0bb1968a5/go.mod h1:N0kxd4FoYDbLOEwm8vWH6wKUkoR5v0Wp/v0+tUqoUMg= -github.com/aerospike/tools-common-go v0.0.0-20240425222921-596724ec5926 h1:CqkNasGC/7x5JvYjCSuAVX/rG+nUgRQtXfxIURXo5OE= -github.com/aerospike/tools-common-go v0.0.0-20240425222921-596724ec5926/go.mod h1:Ig1lRynXx0tXNOY3MdtanTsKz1ifG/2AyDFMXn3RMTc= -github.com/aerospike/tools-common-go v0.0.0-20240618165632-595098741f89 h1:5rYc5QsaQeAnSzUm30gOUANEIEsMS8knbnjouenRV7E= -github.com/aerospike/tools-common-go v0.0.0-20240618165632-595098741f89/go.mod h1:Ig1lRynXx0tXNOY3MdtanTsKz1ifG/2AyDFMXn3RMTc= github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= diff --git a/test_utils.go b/test_utils.go index 9bcb1cc..9f45b21 100644 --- a/test_utils.go +++ b/test_utils.go @@ -2,7 +2,7 @@ package main -import "github.com/aerospike/aerospike-proximus-client-go/protos" +import "github.com/aerospike/avs-client-go/protos" func getStrPtr(str string) *string { ptr := str