Skip to content

Commit

Permalink
Revert go module changes (#3847)
Browse files Browse the repository at this point in the history
* 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 06dd80c c5e8555

* fix: backport changes to v8.3

Backport changes from 06dd80c c5e8555

* fix: backport changes to v8.4

Backport changes from 06dd80c c5e8555

* fix: backport changes to v8.5

Backport changes from 06dd80c c5e8555
  • Loading branch information
Zelldon authored May 28, 2024
1 parent dfc74d1 commit 80a95fa
Show file tree
Hide file tree
Showing 6 changed files with 89 additions and 53 deletions.
28 changes: 17 additions & 11 deletions docs/apis-tools/go-client/go-get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"
)

Expand Down Expand Up @@ -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"
)
Expand Down Expand Up @@ -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"
)
Expand Down
10 changes: 8 additions & 2 deletions versioned_docs/version-1.3/apis-tools/go-client/get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
26 changes: 16 additions & 10 deletions versioned_docs/version-8.2/apis-tools/go-client/go-get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"
)

Expand Down Expand Up @@ -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"
)
Expand Down Expand Up @@ -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"
)
Expand Down
26 changes: 16 additions & 10 deletions versioned_docs/version-8.3/apis-tools/go-client/go-get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"
)

Expand Down Expand Up @@ -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"
)
Expand Down Expand Up @@ -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"
)
Expand Down
26 changes: 16 additions & 10 deletions versioned_docs/version-8.4/apis-tools/go-client/go-get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"
)

Expand Down Expand Up @@ -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"
)
Expand Down Expand Up @@ -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"
)
Expand Down
26 changes: 16 additions & 10 deletions versioned_docs/version-8.5/apis-tools/go-client/go-get-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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"
)

Expand Down Expand Up @@ -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"
)
Expand Down Expand Up @@ -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"
)
Expand Down

0 comments on commit 80a95fa

Please sign in to comment.