diff --git a/Gopkg.lock b/Gopkg.lock deleted file mode 100644 index fe05c06..0000000 --- a/Gopkg.lock +++ /dev/null @@ -1,159 +0,0 @@ -# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'. - - -[[projects]] - digest = "1:17131c6158c724a12a6249bf4e28c239357695cb15ffccb6bc3f246d95e04f09" - name = "bou.ke/monkey" - packages = ["."] - pruneopts = "UT" - revision = "bdf6dea004c6fd1cdf4b25da8ad45a606c09409a" - version = "v1.0.1" - -[[projects]] - digest = "1:a2c1d0e43bd3baaa071d1b9ed72c27d78169b2b269f71c105ac4ba34b1be4a39" - name = "github.com/davecgh/go-spew" - packages = ["spew"] - pruneopts = "UT" - revision = "346938d642f2ec3594ed81d874461961cd0faa76" - version = "v1.1.0" - -[[projects]] - digest = "1:0ade334594e69404d80d9d323445d2297ff8161637f9b2d347cc6973d2d6f05b" - name = "github.com/hashicorp/errwrap" - packages = ["."] - pruneopts = "UT" - revision = "8a6fb523712970c966eefc6b39ed2c5e74880354" - version = "v1.0.0" - -[[projects]] - digest = "1:f668349b83f7d779567c880550534addeca7ebadfdcf44b0b9c39be61864b4b7" - name = "github.com/hashicorp/go-multierror" - packages = ["."] - pruneopts = "UT" - revision = "886a7fbe3eb1c874d46f623bfa70af45f425b3d1" - version = "v1.0.0" - -[[projects]] - digest = "1:870d441fe217b8e689d7949fef6e43efbc787e50f200cb1e70dbca9204a1d6be" - name = "github.com/inconshreveable/mousetrap" - packages = ["."] - pruneopts = "UT" - revision = "76626ae9c91c4f2a10f34cad8ce83ea42c93bb75" - version = "v1.0" - -[[projects]] - digest = "1:cf31692c14422fa27c83a05292eb5cbe0fb2775972e8f1f8446a71549bd8980b" - name = "github.com/pkg/errors" - packages = ["."] - pruneopts = "UT" - revision = "ba968bfe8b2f7e042a574c888954fccecfa385b4" - version = "v0.8.1" - -[[projects]] - digest = "1:0028cb19b2e4c3112225cd871870f2d9cf49b9b4276531f03438a88e94be86fe" - name = "github.com/pmezard/go-difflib" - packages = ["difflib"] - pruneopts = "UT" - revision = "792786c7400a136282c1664665ae0a8db921c6c2" - version = "v1.0.0" - -[[projects]] - digest = "1:7ffc0983035bc7e297da3688d9fe19d60a420e9c38bef23f845c53788ed6a05e" - name = "github.com/spf13/cobra" - packages = ["."] - pruneopts = "UT" - revision = "7b2c5ac9fc04fc5efafb60700713d4fa609b777b" - version = "v0.0.1" - -[[projects]] - digest = "1:1b21a2b4058a779f290c7341cd93267492e0ecea6c8b54f64a4a5fd7ff131034" - name = "github.com/spf13/pflag" - packages = ["."] - pruneopts = "UT" - revision = "e57e3eeb33f795204c1ca35f56c44f83227c6e66" - version = "v1.0.0" - -[[projects]] - digest = "1:ac83cf90d08b63ad5f7e020ef480d319ae890c208f8524622a2f3136e2686b02" - name = "github.com/stretchr/objx" - packages = ["."] - pruneopts = "UT" - revision = "477a77ecc69700c7cdeb1fa9e129548e1c1c393c" - version = "v0.1.1" - -[[projects]] - digest = "1:e7c64d1aa12dd3cb65e82568ba55fe529903575a47115c304b7a76abd8d00134" - name = "github.com/stretchr/testify" - packages = [ - "assert", - "mock", - ] - pruneopts = "UT" - revision = "69483b4bd14f5845b5a1e55bca19e954e827f1d0" - version = "v1.1.4" - -[[projects]] - branch = "master" - digest = "1:a412caf33b5d3c7938c28e1e745c10664bd180277b73ab3b34c0c467886f9969" - name = "golang.org/x/net" - packages = [ - "idna", - "publicsuffix", - ] - pruneopts = "UT" - revision = "8a410e7b638dca158bf9e766925842f6651ff828" - -[[projects]] - branch = "master" - digest = "1:d42da4dfab111ddef8bfe03540cfaa9060137ae2ed995c7dfdaf03bb5cff54a7" - name = "golang.org/x/text" - packages = [ - "collate", - "collate/build", - "internal/colltab", - "internal/gen", - "internal/tag", - "internal/triegen", - "internal/ucd", - "language", - "secure/bidirule", - "transform", - "unicode/bidi", - "unicode/cldr", - "unicode/norm", - "unicode/rangetable", - ] - pruneopts = "UT" - revision = "88f656faf3f37f690df1a32515b479415e1a6769" - -[[projects]] - branch = "v1" - digest = "1:6c802dcce0c717e7fc42d788ee1e2c1393c64b60339d908c0585c32dc5dec994" - name = "gopkg.in/jarcoal/httpmock.v1" - packages = ["."] - pruneopts = "UT" - revision = "275e9df93516fc27a998eca24c8f1cca277ce5bf" - -[[projects]] - digest = "1:ce431d26276fb2227ae64ad2f7d980e8da9126c93979d9c83f413c36215e7031" - name = "gopkg.in/resty.v1" - packages = ["."] - pruneopts = "UT" - revision = "03c09fa32a21b7b27b8dbb3877826c1ab3d2daa2" - version = "v1.11.0" - -[solve-meta] - analyzer-name = "dep" - analyzer-version = 1 - input-imports = [ - "bou.ke/monkey", - "github.com/hashicorp/go-multierror", - "github.com/pkg/errors", - "github.com/spf13/cobra", - "github.com/stretchr/testify/assert", - "github.com/stretchr/testify/mock", - "gopkg.in/jarcoal/httpmock.v1", - "gopkg.in/resty.v1", - ] - solver-name = "gps-cdcl" - solver-version = 1 diff --git a/Gopkg.toml b/Gopkg.toml deleted file mode 100644 index c58ac0b..0000000 --- a/Gopkg.toml +++ /dev/null @@ -1,37 +0,0 @@ - -# Gopkg.toml example -# -# Refer to https://github.com/golang/dep/blob/master/docs/Gopkg.toml.md -# for detailed Gopkg.toml documentation. -# -# required = ["github.com/user/thing/cmd/thing"] -# ignored = ["github.com/user/project/pkgX", "bitbucket.org/user/project/pkgA/pkgY"] -# -# [[constraint]] -# name = "github.com/user/project" -# version = "1.0.0" -# -# [[constraint]] -# name = "github.com/user/project2" -# branch = "dev" -# source = "github.com/myfork/project2" -# -# [[override]] -# name = "github.com/x/y" -# version = "2.4.0" - -[[constraint]] - name = "github.com/spf13/cobra" - version = "0.0.1" - -[[constraint]] - name = "github.com/stretchr/testify" - version = "1.1.4" - -[[constraint]] - name = "gopkg.in/resty.v1" - version = "1.11.0" - -[prune] - go-tests = true - unused-packages = true diff --git a/cli/cmd/create.go b/cli/cmd/create.go index 7426ddd..d38c4af 100644 --- a/cli/cmd/create.go +++ b/cli/cmd/create.go @@ -23,7 +23,7 @@ import ( "path" "strings" - "github.com/ricardo-ch/go-kafka-connect/lib/connectors" + "github.com/ricardo-ch/go-kafka-connect/v3/lib/connectors" "github.com/spf13/cobra" ) diff --git a/cli/cmd/delete.go b/cli/cmd/delete.go index f172695..23fb600 100644 --- a/cli/cmd/delete.go +++ b/cli/cmd/delete.go @@ -15,7 +15,7 @@ package cmd import ( - "github.com/ricardo-ch/go-kafka-connect/lib/connectors" + "github.com/ricardo-ch/go-kafka-connect/v3/lib/connectors" "github.com/spf13/cobra" ) diff --git a/cli/cmd/get.go b/cli/cmd/get.go index 3dfb0cc..b367c25 100644 --- a/cli/cmd/get.go +++ b/cli/cmd/get.go @@ -17,7 +17,7 @@ package cmd import ( "errors" - "github.com/ricardo-ch/go-kafka-connect/lib/connectors" + "github.com/ricardo-ch/go-kafka-connect/v3/lib/connectors" "github.com/spf13/cobra" ) diff --git a/cli/cmd/helper.go b/cli/cmd/helper.go index 3b8680e..3d00ea9 100644 --- a/cli/cmd/helper.go +++ b/cli/cmd/helper.go @@ -6,7 +6,7 @@ import ( "fmt" "log" - "github.com/ricardo-ch/go-kafka-connect/lib/connectors" + "github.com/ricardo-ch/go-kafka-connect/v3/lib/connectors" ) func printResponse(response interface{}) error { diff --git a/cli/cmd/pause.go b/cli/cmd/pause.go index 37334b7..4f09f4e 100644 --- a/cli/cmd/pause.go +++ b/cli/cmd/pause.go @@ -15,7 +15,7 @@ package cmd import ( - "github.com/ricardo-ch/go-kafka-connect/lib/connectors" + "github.com/ricardo-ch/go-kafka-connect/v3/lib/connectors" "github.com/spf13/cobra" ) diff --git a/cli/cmd/resume.go b/cli/cmd/resume.go index db81858..3a93c54 100644 --- a/cli/cmd/resume.go +++ b/cli/cmd/resume.go @@ -15,7 +15,7 @@ package cmd import ( - "github.com/ricardo-ch/go-kafka-connect/lib/connectors" + "github.com/ricardo-ch/go-kafka-connect/v3/lib/connectors" "github.com/spf13/cobra" ) diff --git a/cli/cmd/update.go b/cli/cmd/update.go index 9aaf5ea..076731a 100644 --- a/cli/cmd/update.go +++ b/cli/cmd/update.go @@ -20,7 +20,7 @@ import ( "os" "strings" - "github.com/ricardo-ch/go-kafka-connect/lib/connectors" + "github.com/ricardo-ch/go-kafka-connect/v3/lib/connectors" "github.com/spf13/cobra" ) diff --git a/cli/main.go b/cli/main.go index f3370a5..b5e76cd 100644 --- a/cli/main.go +++ b/cli/main.go @@ -14,7 +14,7 @@ package main -import "github.com/ricardo-ch/go-kafka-connect/cli/cmd" +import "github.com/ricardo-ch/go-kafka-connect/v3/cli/cmd" func main() { cmd.Execute() diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..ae7dc5c --- /dev/null +++ b/go.mod @@ -0,0 +1,23 @@ +module github.com/ricardo-ch/go-kafka-connect/v3 + +go 1.17 + +require ( + bou.ke/monkey v1.0.1 + github.com/hashicorp/go-multierror v1.0.0 + github.com/pkg/errors v0.8.1 + github.com/spf13/cobra v0.0.1 + github.com/stretchr/testify v1.1.4 + gopkg.in/jarcoal/httpmock.v1 v1.0.0-20181117152235-275e9df93516 + gopkg.in/resty.v1 v1.11.0 +) + +require ( + github.com/davecgh/go-spew v1.1.0 // indirect + github.com/hashicorp/errwrap v1.0.0 // indirect + github.com/inconshreveable/mousetrap v1.0.0 // indirect + github.com/pmezard/go-difflib v1.0.0 // indirect + github.com/spf13/pflag v1.0.0 // indirect + github.com/stretchr/objx v0.1.1 // indirect + golang.org/x/net v0.0.0-20181220203305-927f97764cc3 // indirect +) diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..fb72355 --- /dev/null +++ b/go.sum @@ -0,0 +1,28 @@ +bou.ke/monkey v1.0.1 h1:zEMLInw9xvNakzUUPjfS4Ds6jYPqCFx3m7bRmG5NH2U= +bou.ke/monkey v1.0.1/go.mod h1:FgHuK96Rv2Nlf+0u1OOVDpCMdsWyOFmeeketDHE7LIg= +github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/hashicorp/errwrap v1.0.0 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA= +github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4= +github.com/hashicorp/go-multierror v1.0.0 h1:iVjPR7a6H0tWELX5NxNe7bYopibicUzc7uPribsnS6o= +github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= +github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM= +github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8= +github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I= +github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/spf13/cobra v0.0.1 h1:zZh3X5aZbdnoj+4XkaBxKfhO4ot82icYdhhREIAXIj8= +github.com/spf13/cobra v0.0.1/go.mod h1:1l0Ry5zgKvJasoi3XT1TypsSe7PqH0Sj9dhYf7v3XqQ= +github.com/spf13/pflag v1.0.0 h1:oaPbdDe/x0UncahuwiPxW1GYJyilRAdsPnq3e1yaPcI= +github.com/spf13/pflag v1.0.0/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4= +github.com/stretchr/objx v0.1.1 h1:2vfRuCMp5sSVIDSqO8oNnWJq7mPa6KVP3iPIwFBuy8A= +github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/testify v1.1.4 h1:ToftOQTytwshuOSj6bDSolVUa3GINfJP/fg3OkkOzQQ= +github.com/stretchr/testify v1.1.4/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs= +golang.org/x/net v0.0.0-20181220203305-927f97764cc3 h1:eH6Eip3UpmR+yM/qI9Ijluzb1bNv/cAU/n+6l8tRSis= +golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= +gopkg.in/jarcoal/httpmock.v1 v1.0.0-20181117152235-275e9df93516 h1:H6trpavCIuipdInWrab8l34Mf+GGVfphniHostMdMaQ= +gopkg.in/jarcoal/httpmock.v1 v1.0.0-20181117152235-275e9df93516/go.mod h1:d3R+NllX3X5e0zlG1Rful3uLvsGC/Q3OHut5464DEQw= +gopkg.in/resty.v1 v1.11.0 h1:z5nqGs/W/h91PLOc+WZefPj8rRZe8Ctlgxg/AtbJ+NE= +gopkg.in/resty.v1 v1.11.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo= diff --git a/lib/Makefile b/lib/Makefile index 18ac407..b36373b 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -2,8 +2,7 @@ .PHONY: install install: - go get -u github.com/golang/dep/cmd/dep - dep ensure -v + go get ./... .PHONY: test-integration test-integration: