From 13f47bc6602b2099b538efc0f2db2c062ecbe2f1 Mon Sep 17 00:00:00 2001 From: Mario Valderrama <15158349+avorima@users.noreply.github.com> Date: Tue, 17 Dec 2019 10:50:58 +0100 Subject: [PATCH] Fix go module importing (#60) --- README.md | 15 ++++++++------- go.mod | 2 +- integration-tests/datacenter_integration_test.go | 2 +- .../firewallrule_integration_test.go | 2 +- integration-tests/helpers_test.go | 2 +- integration-tests/ipblock_integration_test.go | 2 +- integration-tests/lan_integration_test.go | 2 +- .../loadbalancer_integration_test.go | 2 +- integration-tests/nic_integration_test.go | 2 +- integration-tests/request_integration_test.go | 2 +- integration-tests/server_integration_test.go | 2 +- integration-tests/snapshot_integration_test.go | 2 +- .../usermanagment_integration_test.go | 2 +- integration-tests/volume_integration_test.go | 2 +- 14 files changed, 21 insertions(+), 20 deletions(-) diff --git a/README.md b/README.md index de28c23..359b7d9 100644 --- a/README.md +++ b/README.md @@ -175,7 +175,7 @@ export PATH=$PATH:$GOBIN The following `go` command will download `profitbricks-sdk-go` to your configured `GOPATH`: ```go -go get "github.com/profitbricks/profitbricks-sdk-go" +go get "github.com/profitbricks/profitbricks-sdk-go/v5" ``` The source code of the package will be located here: @@ -199,8 +199,9 @@ Include the ProfitBricks SDK for Go under the list of imports. ```go import( - "fmt" - "github.com/profitbricks/profitbricks-sdk-go" + "fmt" + + "github.com/profitbricks/profitbricks-sdk-go/v5" ) ``` @@ -217,9 +218,9 @@ It might be necessary to accept credentials through environment variables in a c ```go import ( "fmt" - "os" + "os" - "github.com/profitbricks/profitbricks-sdk-go" + "github.com/profitbricks/profitbricks-sdk-go/v5" ) func main() { @@ -294,7 +295,7 @@ client.SetDepth(3) Set Cloud API URL: ```go -client.SetURL("https://api.profitbricks.com/cloudapi/v4") +client.SetURL("https://api.profitbricks.com/cloudapi/v5") ``` #### SetUserAgent @@ -2809,7 +2810,7 @@ import ( "fmt" "os" - "github.com/profitbricks/profitbricks-sdk-go" + "github.com/profitbricks/profitbricks-sdk-go/v5" ) func main() { diff --git a/go.mod b/go.mod index 3a9e7f0..5ac546a 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/profitbricks/profitbricks-sdk-go +module github.com/profitbricks/profitbricks-sdk-go/v5 require ( github.com/davecgh/go-spew v1.1.1 // indirect diff --git a/integration-tests/datacenter_integration_test.go b/integration-tests/datacenter_integration_test.go index 0f2cfbf..690fe5b 100644 --- a/integration-tests/datacenter_integration_test.go +++ b/integration-tests/datacenter_integration_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - sdk "github.com/profitbricks/profitbricks-sdk-go" + sdk "github.com/profitbricks/profitbricks-sdk-go/v5" "github.com/stretchr/testify/assert" ) diff --git a/integration-tests/firewallrule_integration_test.go b/integration-tests/firewallrule_integration_test.go index ba1eb73..7ff91e1 100644 --- a/integration-tests/firewallrule_integration_test.go +++ b/integration-tests/firewallrule_integration_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - sdk "github.com/profitbricks/profitbricks-sdk-go" + sdk "github.com/profitbricks/profitbricks-sdk-go/v5" "github.com/stretchr/testify/assert" ) diff --git a/integration-tests/helpers_test.go b/integration-tests/helpers_test.go index 2952dd9..4851915 100644 --- a/integration-tests/helpers_test.go +++ b/integration-tests/helpers_test.go @@ -6,7 +6,7 @@ import ( "strings" "sync" - sdk "github.com/profitbricks/profitbricks-sdk-go" + sdk "github.com/profitbricks/profitbricks-sdk-go/v5" ) var ( diff --git a/integration-tests/ipblock_integration_test.go b/integration-tests/ipblock_integration_test.go index 0b132ab..e09f747 100644 --- a/integration-tests/ipblock_integration_test.go +++ b/integration-tests/ipblock_integration_test.go @@ -5,7 +5,7 @@ import ( "strings" "testing" - sdk "github.com/profitbricks/profitbricks-sdk-go" + sdk "github.com/profitbricks/profitbricks-sdk-go/v5" "github.com/stretchr/testify/assert" ) diff --git a/integration-tests/lan_integration_test.go b/integration-tests/lan_integration_test.go index 1c8751b..67bd208 100644 --- a/integration-tests/lan_integration_test.go +++ b/integration-tests/lan_integration_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - sdk "github.com/profitbricks/profitbricks-sdk-go" + sdk "github.com/profitbricks/profitbricks-sdk-go/v5" "github.com/stretchr/testify/assert" ) diff --git a/integration-tests/loadbalancer_integration_test.go b/integration-tests/loadbalancer_integration_test.go index ea9fcb7..6a296b2 100644 --- a/integration-tests/loadbalancer_integration_test.go +++ b/integration-tests/loadbalancer_integration_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - sdk "github.com/profitbricks/profitbricks-sdk-go" + sdk "github.com/profitbricks/profitbricks-sdk-go/v5" "github.com/stretchr/testify/assert" ) diff --git a/integration-tests/nic_integration_test.go b/integration-tests/nic_integration_test.go index a2fa877..5c9f96d 100644 --- a/integration-tests/nic_integration_test.go +++ b/integration-tests/nic_integration_test.go @@ -5,7 +5,7 @@ import ( "sync" "testing" - sdk "github.com/profitbricks/profitbricks-sdk-go" + sdk "github.com/profitbricks/profitbricks-sdk-go/v5" "github.com/stretchr/testify/assert" ) diff --git a/integration-tests/request_integration_test.go b/integration-tests/request_integration_test.go index 21553eb..4eefb99 100644 --- a/integration-tests/request_integration_test.go +++ b/integration-tests/request_integration_test.go @@ -6,7 +6,7 @@ import ( "net/url" "testing" - sdk "github.com/profitbricks/profitbricks-sdk-go" + sdk "github.com/profitbricks/profitbricks-sdk-go/v5" "github.com/stretchr/testify/assert" ) diff --git a/integration-tests/server_integration_test.go b/integration-tests/server_integration_test.go index 92a62b3..addfc1d 100644 --- a/integration-tests/server_integration_test.go +++ b/integration-tests/server_integration_test.go @@ -4,7 +4,7 @@ import ( "fmt" "testing" - sdk "github.com/profitbricks/profitbricks-sdk-go" + sdk "github.com/profitbricks/profitbricks-sdk-go/v5" "github.com/stretchr/testify/assert" ) diff --git a/integration-tests/snapshot_integration_test.go b/integration-tests/snapshot_integration_test.go index b7d6ca1..fb5bb23 100644 --- a/integration-tests/snapshot_integration_test.go +++ b/integration-tests/snapshot_integration_test.go @@ -5,7 +5,7 @@ import ( "sync" "testing" - sdk "github.com/profitbricks/profitbricks-sdk-go" + sdk "github.com/profitbricks/profitbricks-sdk-go/v5" "github.com/stretchr/testify/assert" ) diff --git a/integration-tests/usermanagment_integration_test.go b/integration-tests/usermanagment_integration_test.go index 9c41fe5..2aaafff 100644 --- a/integration-tests/usermanagment_integration_test.go +++ b/integration-tests/usermanagment_integration_test.go @@ -8,7 +8,7 @@ import ( "testing" "time" - sdk "github.com/profitbricks/profitbricks-sdk-go" + sdk "github.com/profitbricks/profitbricks-sdk-go/v5" "github.com/stretchr/testify/assert" ) diff --git a/integration-tests/volume_integration_test.go b/integration-tests/volume_integration_test.go index b965f2f..9199431 100644 --- a/integration-tests/volume_integration_test.go +++ b/integration-tests/volume_integration_test.go @@ -5,7 +5,7 @@ import ( "sync" "testing" - sdk "github.com/profitbricks/profitbricks-sdk-go" + sdk "github.com/profitbricks/profitbricks-sdk-go/v5" "github.com/stretchr/testify/assert" )