From 2b83c47c5518b9a26494384dc2ee389d356a601c Mon Sep 17 00:00:00 2001 From: David Haukeness Date: Wed, 22 Apr 2020 16:49:57 +0000 Subject: [PATCH] update framework to v2 --- commands.go | 2 +- go.mod | 2 +- go.sum | 4 ++-- handlers.go | 6 +++--- kvstore.go | 2 +- main.go | 6 +++--- permissions.go | 2 +- types.go | 2 +- utils.go | 2 +- 9 files changed, 14 insertions(+), 14 deletions(-) diff --git a/commands.go b/commands.go index 12c03ab..8ab8694 100644 --- a/commands.go +++ b/commands.go @@ -7,7 +7,7 @@ import ( "strings" "text/tabwriter" - "samhofi.us/x/keybase/types/chat1" + "samhofi.us/x/keybase/v2/types/chat1" ) /* diff --git a/go.mod b/go.mod index 4185378..2ff2c60 100644 --- a/go.mod +++ b/go.mod @@ -12,5 +12,5 @@ require ( github.com/ugorji/go/codec v1.1.7 gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect gopkg.in/yaml.v2 v2.2.4 // indirect - samhofi.us/x/keybase v0.0.0-20200315012740-74fb4a152b35 + samhofi.us/x/keybase/v2 v2.0.1 ) diff --git a/go.sum b/go.sum index e9ad379..179397c 100644 --- a/go.sum +++ b/go.sum @@ -29,5 +29,5 @@ gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8 gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v2 v2.2.4 h1:/eiJrUcujPVeJ3xlSWaiNi3uSVmDGBK1pDHUHAnao1I= gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= -samhofi.us/x/keybase v0.0.0-20200315012740-74fb4a152b35 h1:pnpx+34wna1ML9JxHEChf3lDSBOOEh91B5IDuNFUZYk= -samhofi.us/x/keybase v0.0.0-20200315012740-74fb4a152b35/go.mod h1:fcva80IUFyWcHtV4bBSzgKg07K6Rvuvi3GtGCLNGkyE= +samhofi.us/x/keybase/v2 v2.0.1 h1:4PMIlG09Tft+g1zRBrZsZ32a3woxnmHVZHoKDgAy5/c= +samhofi.us/x/keybase/v2 v2.0.1/go.mod h1:lJivwhzMSV+WUg+XUbatszStjjFVcuLGl+xcQpqQ5GQ= diff --git a/handlers.go b/handlers.go index b159955..54c1205 100644 --- a/handlers.go +++ b/handlers.go @@ -4,9 +4,9 @@ import ( "log" "strings" - "samhofi.us/x/keybase" - "samhofi.us/x/keybase/types/chat1" - "samhofi.us/x/keybase/types/stellar1" + "samhofi.us/x/keybase/v2" + "samhofi.us/x/keybase/v2/types/chat1" + "samhofi.us/x/keybase/v2/types/stellar1" ) // RegisterHandlers is called by main to map these handler funcs to events diff --git a/kvstore.go b/kvstore.go index d4d3569..339cee0 100644 --- a/kvstore.go +++ b/kvstore.go @@ -4,7 +4,7 @@ import ( "reflect" "github.com/ugorji/go/codec" - "samhofi.us/x/keybase/types/chat1" + "samhofi.us/x/keybase/v2/types/chat1" ) // KvStorePutStruct marshals an interface to JSON and sends to kvstore diff --git a/main.go b/main.go index 260f6f8..1f62dc9 100644 --- a/main.go +++ b/main.go @@ -6,9 +6,9 @@ import ( "os" "github.com/teris-io/shortid" - "samhofi.us/x/keybase" - "samhofi.us/x/keybase/types/chat1" - "samhofi.us/x/keybase/types/stellar1" + "samhofi.us/x/keybase/v2" + "samhofi.us/x/keybase/v2/types/chat1" + "samhofi.us/x/keybase/v2/types/stellar1" ) // Bot holds the necessary information for the bot to work. diff --git a/permissions.go b/permissions.go index 8368a7c..5ffb156 100644 --- a/permissions.go +++ b/permissions.go @@ -3,7 +3,7 @@ package main import ( "strings" - "samhofi.us/x/keybase/types/chat1" + "samhofi.us/x/keybase/v2/types/chat1" ) // checkPermissionAndExecute will check the minimum required role for the permission and execute the handler function if allowed diff --git a/types.go b/types.go index d8c9a82..4a3020b 100644 --- a/types.go +++ b/types.go @@ -1,6 +1,6 @@ package main -import "samhofi.us/x/keybase/types/chat1" +import "samhofi.us/x/keybase/v2/types/chat1" // hold reply information when needed type botReply struct { diff --git a/utils.go b/utils.go index 6dc02dd..5ff7307 100644 --- a/utils.go +++ b/utils.go @@ -6,7 +6,7 @@ import ( "reflect" "strings" - "samhofi.us/x/keybase/types/chat1" + "samhofi.us/x/keybase/v2/types/chat1" ) // this JSON pretty prints errors and debug