Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert go module changes #3847

Merged
merged 7 commits into from
May 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading