Skip to content

Commit

Permalink
Merge pull request #72 from cludden/cludden/sdk-go@1.27.0
Browse files Browse the repository at this point in the history
Upgrade go.temporal.io/sdk to v1.27.0
  • Loading branch information
cludden committed Jun 20, 2024
2 parents 7ae99e9 + 4e5fda9 commit 5d73dd3
Show file tree
Hide file tree
Showing 63 changed files with 1,010 additions and 986 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

# Unreleased

### ⚠ BREAKING CHANGES

- [#72](https://github.com/cludden/protoc-gen-go-temporal/pull/72) upgrade go.temporal.io/sdk to [v1.27.0](https://github.com/temporalio/sdk-go/releases/tag/v1.27.0)

### Added

Expand Down
26 changes: 19 additions & 7 deletions buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
version: v1
version: v2
managed:
enabled: true
go_package_prefix:
default: github.com/cludden/protoc-gen-go-temporal/gen
override:
- file_option: go_package_prefix
value: github.com/cludden/protoc-gen-go-temporal/gen
plugins:
- plugin: go-patch
- local: protoc-gen-go-patch
out: gen
opt: plugin=go,paths=source_relative
- plugin: go_temporal
opt:
- paths=source_relative
- plugin=go
- local: protoc-gen-go_temporal
out: gen
opt: paths=source_relative,cli-enabled=true,cli-categories=true,workflow-update-enabled=true,enable-patch-support=true,enable-xns=true,enable-codec=true,docs-out=./proto/README.md,patches=64_ENABLED
opt:
- cli-categories=true
- cli-enabled=true
- docs-out=./proto/README.md
- enable-codec=true
- enable-patch-support=true
- enable-xns=true
- patches=64_ENABLED
- paths=source_relative
- workflow-update-enabled=true
strategy: all
6 changes: 6 additions & 0 deletions buf.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Generated by buf. DO NOT EDIT.
version: v2
deps:
- name: buf.build/googleapis/googleapis
commit: cc916c31859748a68fd229a3c8d7a2e8
digest: b5:3b4e241d18fbebc6b30ff28968527af2cdd618026930d2a9666bbad2868b1aa164d20229477464691bdfd053a77b5c727468039bd1d2b550cb4151ee4c1499fe
13 changes: 0 additions & 13 deletions buf.work.yaml

This file was deleted.

28 changes: 28 additions & 0 deletions buf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
version: v2
modules:
- path: examples/example/proto
- path: examples/helloworld/proto
- path: examples/mutex/proto
- path: examples/searchattributes/proto
- path: examples/updatabletimer/proto
- path: examples/xns/proto
- path: proto
name: buf.build/cludden/protoc-gen-go-temporal
- path: test/expression/proto
- path: test/option/proto
- path: test/simple/proto
- path: test/xnserr/proto
deps:
- buf.build/cludden/protoc-gen-go-temporal-example
lint:
use:
- BASIC
except:
- FIELD_NOT_REQUIRED
- PACKAGE_NO_IMPORT_CYCLE
breaking:
use:
- FILE
except:
- EXTENSION_NO_DELETE
- FIELD_SAME_DEFAULT
8 changes: 3 additions & 5 deletions docs/docs/how-it-works.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,11 @@ import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

import Proto from '!!raw-loader!../../examples/example/proto/example/v1/example.proto';
import Buf from '!!raw-loader!../../examples/example/proto/buf.yaml';
import BufGen from '!!raw-loader!../../examples/example/buf.gen.yaml';
import Implementation from '!!raw-loader!../../examples/example/example.go';
import Entrypoint from '!!raw-loader!../../examples/example/cmd/example/main.go';
import Client from '!!raw-loader!../../examples/example/cmd/client/main.go';

import { cli_fragments, xns_example } from './how-it-works.tsx';
import { buf_gen_yaml, buf_yaml, cli_fragments, xns_example } from './how-it-works.tsx';

<Tabs>
<TabItem value="annotate" label="Annotate">
Expand All @@ -18,8 +16,8 @@ import { cli_fragments, xns_example } from './how-it-works.tsx';
</TabItem>
<TabItem value="generate" label="Generate">
Generate Go code for implementing Temporal Clients, Workers, and CLI applications.
<CodeBlock language="yaml" title="buf.yaml">{Buf}</CodeBlock>
<CodeBlock language="yaml" title="buf.gen.yaml">{BufGen}</CodeBlock>
<CodeBlock language="yaml" title="buf.yaml">{buf_yaml}</CodeBlock>
<CodeBlock language="yaml" title="buf.gen.yaml">{buf_gen_yaml}</CodeBlock>
<CodeBlock language="sh">buf generate</CodeBlock>
</TabItem>
<TabItem value="implement" label="Implement">
Expand Down
32 changes: 32 additions & 0 deletions docs/docs/how-it-works.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,35 @@

export let buf_gen_yaml = `version: v2
managed:
enabled: true
override:
- file_option: go_package_prefix
value: example/gen
plugins:
- local: protoc-gen-go
out: gen
opt:
- paths=source_relative
- local: protoc-gen-go_temporal
out: gen
strategy: all
opt:
- cli-categories=true
- cli-enabled=true
- docs-out=./proto/README.md
- workflow-update-enabled=true
`

export let buf_yaml = `version: v2
modules:
- path: proto
deps:
- buf.build/cludden/protoc-gen-go-temporal
lint:
use:
- BASIC
`

export let cli_fragments = [
{
language: 'sh',
Expand Down Expand Up @@ -116,3 +147,4 @@ func SomeWorkflow(ctx workflow.Context) error {
return nil
}
`

16 changes: 9 additions & 7 deletions examples/example/buf.gen.yaml
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
version: v1
version: v2
managed:
enabled: true
go_package_prefix:
default: example/gen
except:
- buf.build/cludden/protoc-gen-go-temporal
disable:
- file_option: go_package
module: buf.build/cludden/protoc-gen-go-temporal
override:
- file_option: go_package_prefix
value: example/gen
plugins:
- plugin: go
- local: protoc-gen-go
out: gen
opt: paths=source_relative
- plugin: go_temporal
- local: protoc-gen-go_temporal
out: gen
opt: paths=source_relative,cli-enabled=true,cli-categories=true,workflow-update-enabled=true,docs-out=./proto/README.md
strategy: all
13 changes: 0 additions & 13 deletions examples/example/proto/buf.lock

This file was deleted.

10 changes: 0 additions & 10 deletions examples/example/proto/buf.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions examples/helloworld/proto/buf.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions examples/mutex/proto/buf.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions examples/searchattributes/proto/buf.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions examples/updatabletimer/proto/buf.yaml

This file was deleted.

11 changes: 0 additions & 11 deletions examples/xns/proto/buf.yaml

This file was deleted.

4 changes: 2 additions & 2 deletions gen/example/helloworld/v1/example_temporal.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions gen/example/mutex/v1/mutex_temporal.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions gen/example/mutex/v1/mutexv1xns/mutex_xns_temporal.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions gen/example/updatabletimer/v1/updatabletimer_temporal.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5d73dd3

Please sign in to comment.