From 80a95faccd55849a42b1c175f1545c2e6f8cb0b7 Mon Sep 17 00:00:00 2001 From: "Christopher Kujawa (Zell)" Date: Tue, 28 May 2024 14:56:25 +0200 Subject: [PATCH] Revert go module changes (#3847) * refactor: simplify go client instructions * fix: use correct go module name * refactor: v1.3 simplify go client instructions * fix: backport changes to v8.2 Backport changes from 06dd80cfe6bdaee3025418911fbfdefeaec6dfab c5e855527783936eee19d5a00b4ead643548c64d * fix: backport changes to v8.3 Backport changes from 06dd80cfe6bdaee3025418911fbfdefeaec6dfab c5e855527783936eee19d5a00b4ead643548c64d * fix: backport changes to v8.4 Backport changes from 06dd80cfe6bdaee3025418911fbfdefeaec6dfab c5e855527783936eee19d5a00b4ead643548c64d * fix: backport changes to v8.5 Backport changes from 06dd80cfe6bdaee3025418911fbfdefeaec6dfab c5e855527783936eee19d5a00b4ead643548c64d --- docs/apis-tools/go-client/go-get-started.md | 28 +++++++++++-------- .../apis-tools/go-client/get-started.md | 10 +++++-- .../apis-tools/go-client/go-get-started.md | 26 ++++++++++------- .../apis-tools/go-client/go-get-started.md | 26 ++++++++++------- .../apis-tools/go-client/go-get-started.md | 26 ++++++++++------- .../apis-tools/go-client/go-get-started.md | 26 ++++++++++------- 6 files changed, 89 insertions(+), 53 deletions(-) diff --git a/docs/apis-tools/go-client/go-get-started.md b/docs/apis-tools/go-client/go-get-started.md index 47ff1d18c9..762255c0ed 100644 --- a/docs/apis-tools/go-client/go-get-started.md +++ b/docs/apis-tools/go-client/go-get-started.md @@ -28,20 +28,26 @@ First, we need a new Go project. To do this, complete the following steps: 1. Create a new project using your IDE, or create a new Go module with the following command: -``` +```bash mkdir github.com/zb-user/zb-example cd github.com/zb-user/zb-example go mod init zb-user/zb-example ``` -2. To use the Zeebe Go client library, add the following dependency to your `go.mod`: +2. To use the Zeebe Go client library, run the following: +```bash +go get github.com/camunda/zeebe/clients/go/v8@v8.5.1 ``` + +This adds the following dependency to your `go.mod`, it should look similar to this: + +```go module github.com/zb-user/zb-example go 1.21 -require github.com/camunda/camunda/clients/go/v8@v8.5.0 +require github.com/camunda/zeebe/clients/go/v8@v8.5.1 ``` 3. Set the connection settings and client credentials as environment variables in your terminal: @@ -65,8 +71,8 @@ package main import ( "context" "fmt" - "github.com/camunda/camunda/clients/go/v8/pkg/zbc" - "github.com/camunda/camunda/clients/go/v8/pkg/pb" + "github.com/camunda/zeebe/clients/go/v8/pkg/zbc" + "github.com/camunda/zeebe/clients/go/v8/pkg/pb" "os" ) @@ -291,9 +297,9 @@ package main import ( "context" "fmt" - "github.com/camunda/camunda/clients/go/v8/pkg/entities" - "github.com/camunda/camunda/clients/go/v8/pkg/worker" - "github.com/camunda/camunda/clients/go/v8/pkg/zbc" + "github.com/camunda/zeebe/clients/go/v8/pkg/entities" + "github.com/camunda/zeebe/clients/go/v8/pkg/worker" + "github.com/camunda/zeebe/clients/go/v8/pkg/zbc" "log" "os" ) @@ -407,9 +413,9 @@ package main import ( "context" "fmt" - "github.com/camunda/camunda/clients/go/v8/pkg/entities" - "github.com/camunda/camunda/clients/go/v8/pkg/worker" - "github.com/camunda/camunda/clients/go/v8/pkg/zbc" + "github.com/camunda/zeebe/clients/go/v8/pkg/entities" + "github.com/camunda/zeebe/clients/go/v8/pkg/worker" + "github.com/camunda/zeebe/clients/go/v8/pkg/zbc" "log" "os" ) diff --git a/versioned_docs/version-1.3/apis-tools/go-client/get-started.md b/versioned_docs/version-1.3/apis-tools/go-client/get-started.md index ebf61b8d14..d391023822 100644 --- a/versioned_docs/version-1.3/apis-tools/go-client/get-started.md +++ b/versioned_docs/version-1.3/apis-tools/go-client/get-started.md @@ -22,15 +22,21 @@ First, we need a new Go project. To do this, complete the following steps: 1. Create a new project using your IDE, or create a new Go module with the following command: -``` +```bash mkdir -p $GOPATH/src/github.com/zb-user/zb-example cd $GOPATH/src/github.com/zb-user/zb-example go mod init ``` -2. To use the Zeebe Go client library, add the following dependency to your `go.mod`: +2. To use the Zeebe Go client library, run the following: +```bash +go get github.com/camunda/zeebe/clients/go@1.2.9 ``` + +This adds the following dependency to your `go.mod`, it should look similar to this: + +```go module github.com/zb-user/zb-example go 1.17 diff --git a/versioned_docs/version-8.2/apis-tools/go-client/go-get-started.md b/versioned_docs/version-8.2/apis-tools/go-client/go-get-started.md index b5f6ec5461..2210e68bdb 100644 --- a/versioned_docs/version-8.2/apis-tools/go-client/go-get-started.md +++ b/versioned_docs/version-8.2/apis-tools/go-client/go-get-started.md @@ -30,14 +30,20 @@ cd github.com/zb-user/zb-example go mod init zb-user/zb-example ``` -2. To use the Zeebe Go client library, add the following dependency to your `go.mod`: +2. To use the Zeebe Go client library, run the following: +```bash +go get github.com/camunda/zeebe/clients/go/v8@v8.2.7 ``` + +This adds the following dependency to your `go.mod`, it should look similar to this: + +```go module github.com/zb-user/zb-example go 1.19 -require github.com/camunda/camunda/clients/go/v8@v8.2.7 +require github.com/camunda/zeebe/clients/go/v8@v8.2.7 ``` 3. Set the connection settings and client credentials as environment variables in your terminal: @@ -61,8 +67,8 @@ package main import ( "context" "fmt" - "github.com/camunda/camunda/clients/go/v8/pkg/zbc" - "github.com/camunda/camunda/clients/go/v8/pkg/pb" + "github.com/camunda/zeebe/clients/go/v8/pkg/zbc" + "github.com/camunda/zeebe/clients/go/v8/pkg/pb" "os" ) @@ -285,9 +291,9 @@ package main import ( "context" "fmt" - "github.com/camunda/camunda/clients/go/v8/pkg/entities" - "github.com/camunda/camunda/clients/go/v8/pkg/worker" - "github.com/camunda/camunda/clients/go/v8/pkg/zbc" + "github.com/camunda/zeebe/clients/go/v8/pkg/entities" + "github.com/camunda/zeebe/clients/go/v8/pkg/worker" + "github.com/camunda/zeebe/clients/go/v8/pkg/zbc" "log" "os" ) @@ -401,9 +407,9 @@ package main import ( "context" "fmt" - "github.com/camunda/camunda/clients/go/v8/pkg/entities" - "github.com/camunda/camunda/clients/go/v8/pkg/worker" - "github.com/camunda/camunda/clients/go/v8/pkg/zbc" + "github.com/camunda/zeebe/clients/go/v8/pkg/entities" + "github.com/camunda/zeebe/clients/go/v8/pkg/worker" + "github.com/camunda/zeebe/clients/go/v8/pkg/zbc" "log" "os" ) diff --git a/versioned_docs/version-8.3/apis-tools/go-client/go-get-started.md b/versioned_docs/version-8.3/apis-tools/go-client/go-get-started.md index 125a60852a..481c44cad5 100644 --- a/versioned_docs/version-8.3/apis-tools/go-client/go-get-started.md +++ b/versioned_docs/version-8.3/apis-tools/go-client/go-get-started.md @@ -35,14 +35,20 @@ cd github.com/zb-user/zb-example go mod init zb-user/zb-example ``` -2. To use the Zeebe Go client library, add the following dependency to your `go.mod`: +2. To use the Zeebe Go client library, run the following: +```bash +go get github.com/camunda/zeebe/clients/go/v8@v8.3.1 ``` + +This adds the following dependency to your `go.mod`, it should look similar to this: + +```go module github.com/zb-user/zb-example go 1.19 -require github.com/camunda/camunda/clients/go/v8@v8.2.7 +require github.com/camunda/zeebe/clients/go/v8@v8.3.1 ``` 3. Set the connection settings and client credentials as environment variables in your terminal: @@ -66,8 +72,8 @@ package main import ( "context" "fmt" - "github.com/camunda/camunda/clients/go/v8/pkg/zbc" - "github.com/camunda/camunda/clients/go/v8/pkg/pb" + "github.com/camunda/zeebe/clients/go/v8/pkg/zbc" + "github.com/camunda/zeebe/clients/go/v8/pkg/pb" "os" ) @@ -290,9 +296,9 @@ package main import ( "context" "fmt" - "github.com/camunda/camunda/clients/go/v8/pkg/entities" - "github.com/camunda/camunda/clients/go/v8/pkg/worker" - "github.com/camunda/camunda/clients/go/v8/pkg/zbc" + "github.com/camunda/zeebe/clients/go/v8/pkg/entities" + "github.com/camunda/zeebe/clients/go/v8/pkg/worker" + "github.com/camunda/zeebe/clients/go/v8/pkg/zbc" "log" "os" ) @@ -406,9 +412,9 @@ package main import ( "context" "fmt" - "github.com/camunda/camunda/clients/go/v8/pkg/entities" - "github.com/camunda/camunda/clients/go/v8/pkg/worker" - "github.com/camunda/camunda/clients/go/v8/pkg/zbc" + "github.com/camunda/zeebe/clients/go/v8/pkg/entities" + "github.com/camunda/zeebe/clients/go/v8/pkg/worker" + "github.com/camunda/zeebe/clients/go/v8/pkg/zbc" "log" "os" ) diff --git a/versioned_docs/version-8.4/apis-tools/go-client/go-get-started.md b/versioned_docs/version-8.4/apis-tools/go-client/go-get-started.md index a3209bf044..cf3b6d9bf5 100644 --- a/versioned_docs/version-8.4/apis-tools/go-client/go-get-started.md +++ b/versioned_docs/version-8.4/apis-tools/go-client/go-get-started.md @@ -34,14 +34,20 @@ cd github.com/zb-user/zb-example go mod init zb-user/zb-example ``` -2. To use the Zeebe Go client library, add the following dependency to your `go.mod`: +2. To use the Zeebe Go client library, run the following: +```bash +go get github.com/camunda/zeebe/clients/go/v8@v8.4.1 ``` + +This adds the following dependency to your `go.mod`, it should look similar to this: + +```go module github.com/zb-user/zb-example go 1.19 -require github.com/camunda/camunda/clients/go/v8@v8.2.7 +require github.com/camunda/zeebe/clients/go/v8@v8.4.1 ``` 3. Set the connection settings and client credentials as environment variables in your terminal: @@ -65,8 +71,8 @@ package main import ( "context" "fmt" - "github.com/camunda/camunda/clients/go/v8/pkg/zbc" - "github.com/camunda/camunda/clients/go/v8/pkg/pb" + "github.com/camunda/zeebe/clients/go/v8/pkg/zbc" + "github.com/camunda/zeebe/clients/go/v8/pkg/pb" "os" ) @@ -289,9 +295,9 @@ package main import ( "context" "fmt" - "github.com/camunda/camunda/clients/go/v8/pkg/entities" - "github.com/camunda/camunda/clients/go/v8/pkg/worker" - "github.com/camunda/camunda/clients/go/v8/pkg/zbc" + "github.com/camunda/zeebe/clients/go/v8/pkg/entities" + "github.com/camunda/zeebe/clients/go/v8/pkg/worker" + "github.com/camunda/zeebe/clients/go/v8/pkg/zbc" "log" "os" ) @@ -405,9 +411,9 @@ package main import ( "context" "fmt" - "github.com/camunda/camunda/clients/go/v8/pkg/entities" - "github.com/camunda/camunda/clients/go/v8/pkg/worker" - "github.com/camunda/camunda/clients/go/v8/pkg/zbc" + "github.com/camunda/zeebe/clients/go/v8/pkg/entities" + "github.com/camunda/zeebe/clients/go/v8/pkg/worker" + "github.com/camunda/zeebe/clients/go/v8/pkg/zbc" "log" "os" ) diff --git a/versioned_docs/version-8.5/apis-tools/go-client/go-get-started.md b/versioned_docs/version-8.5/apis-tools/go-client/go-get-started.md index 47ff1d18c9..9d0c7bff13 100644 --- a/versioned_docs/version-8.5/apis-tools/go-client/go-get-started.md +++ b/versioned_docs/version-8.5/apis-tools/go-client/go-get-started.md @@ -34,14 +34,20 @@ cd github.com/zb-user/zb-example go mod init zb-user/zb-example ``` -2. To use the Zeebe Go client library, add the following dependency to your `go.mod`: +2. To use the Zeebe Go client library, run the following: +```bash +go get github.com/camunda/zeebe/clients/go/v8@v8.5.1 ``` + +This adds the following dependency to your `go.mod`, it should look similar to this: + +```go module github.com/zb-user/zb-example go 1.21 -require github.com/camunda/camunda/clients/go/v8@v8.5.0 +require github.com/camunda/zeebe/clients/go/v8@v8.5.1 ``` 3. Set the connection settings and client credentials as environment variables in your terminal: @@ -65,8 +71,8 @@ package main import ( "context" "fmt" - "github.com/camunda/camunda/clients/go/v8/pkg/zbc" - "github.com/camunda/camunda/clients/go/v8/pkg/pb" + "github.com/camunda/zeebe/clients/go/v8/pkg/zbc" + "github.com/camunda/zeebe/clients/go/v8/pkg/pb" "os" ) @@ -291,9 +297,9 @@ package main import ( "context" "fmt" - "github.com/camunda/camunda/clients/go/v8/pkg/entities" - "github.com/camunda/camunda/clients/go/v8/pkg/worker" - "github.com/camunda/camunda/clients/go/v8/pkg/zbc" + "github.com/camunda/zeebe/clients/go/v8/pkg/entities" + "github.com/camunda/zeebe/clients/go/v8/pkg/worker" + "github.com/camunda/zeebe/clients/go/v8/pkg/zbc" "log" "os" ) @@ -407,9 +413,9 @@ package main import ( "context" "fmt" - "github.com/camunda/camunda/clients/go/v8/pkg/entities" - "github.com/camunda/camunda/clients/go/v8/pkg/worker" - "github.com/camunda/camunda/clients/go/v8/pkg/zbc" + "github.com/camunda/zeebe/clients/go/v8/pkg/entities" + "github.com/camunda/zeebe/clients/go/v8/pkg/worker" + "github.com/camunda/zeebe/clients/go/v8/pkg/zbc" "log" "os" )