Skip to content

Commit 00f60f0

Browse files
author
Christopher Ludden
committed
chore: initial commit
0 parents  commit 00f60f0

File tree

16 files changed

+2773
-0
lines changed

16 files changed

+2773
-0
lines changed

.gitignore

Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
2+
dist/
3+
4+
# If you prefer the allow list template instead of the deny list, see community template:
5+
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
6+
#
7+
# Binaries for programs and plugins
8+
*.exe
9+
*.exe~
10+
*.dll
11+
*.so
12+
*.dylib
13+
14+
# Test binary, built with `go test -c`
15+
*.test
16+
17+
# Output of the go coverage tool, specifically when used with LiteIDE
18+
*.out
19+
20+
# Dependency directories (remove the comment below to include it)
21+
# vendor/
22+
23+
# Go workspace file
24+
go.work
25+
26+
# General
27+
.DS_Store
28+
.AppleDouble
29+
.LSOverride
30+
31+
# Icon must end with two \r
32+
Icon
33+
34+
# Thumbnails
35+
._*
36+
37+
# Files that might appear in the root of a volume
38+
.DocumentRevisions-V100
39+
.fseventsd
40+
.Spotlight-V100
41+
.TemporaryItems
42+
.Trashes
43+
.VolumeIcon.icns
44+
.com.apple.timemachine.donotpresent
45+
46+
# Directories potentially created on remote AFP share
47+
.AppleDB
48+
.AppleDesktop
49+
Network Trash Folder
50+
Temporary Items
51+
.apdisk
52+
53+
# Windows thumbnail cache files
54+
Thumbs.db
55+
Thumbs.db:encryptable
56+
ehthumbs.db
57+
ehthumbs_vista.db
58+
59+
# Dump file
60+
*.stackdump
61+
62+
# Folder config file
63+
[Dd]esktop.ini
64+
65+
# Recycle Bin used on file shares
66+
$RECYCLE.BIN/
67+
68+
# Windows Installer files
69+
*.cab
70+
*.msi
71+
*.msix
72+
*.msm
73+
*.msp
74+
75+
# Windows shortcuts
76+
*.lnk
77+
78+
*~
79+
80+
# temporary files which can be created if a process still has a handle open of a deleted file
81+
.fuse_hidden*
82+
83+
# KDE directory preferences
84+
.directory
85+
86+
# Linux trash folder which might appear on any partition or disk
87+
.Trash-*
88+
89+
# .nfs files are created when an open file is removed but is still being accessed
90+
.nfs*
91+
92+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
93+
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
94+
95+
# User-specific stuff
96+
.idea/**/workspace.xml
97+
.idea/**/tasks.xml
98+
.idea/**/usage.statistics.xml
99+
.idea/**/dictionaries
100+
.idea/**/shelf
101+
102+
# AWS User-specific
103+
.idea/**/aws.xml
104+
105+
# Generated files
106+
.idea/**/contentModel.xml
107+
108+
# Sensitive or high-churn files
109+
.idea/**/dataSources/
110+
.idea/**/dataSources.ids
111+
.idea/**/dataSources.local.xml
112+
.idea/**/sqlDataSources.xml
113+
.idea/**/dynamic.xml
114+
.idea/**/uiDesigner.xml
115+
.idea/**/dbnavigator.xml
116+
117+
# Gradle
118+
.idea/**/gradle.xml
119+
.idea/**/libraries
120+
121+
# Gradle and Maven with auto-import
122+
# When using Gradle or Maven with auto-import, you should exclude module files,
123+
# since they will be recreated, and may cause churn. Uncomment if using
124+
# auto-import.
125+
# .idea/artifacts
126+
# .idea/compiler.xml
127+
# .idea/jarRepositories.xml
128+
# .idea/modules.xml
129+
# .idea/*.iml
130+
# .idea/modules
131+
# *.iml
132+
# *.ipr
133+
134+
# CMake
135+
cmake-build-*/
136+
137+
# Mongo Explorer plugin
138+
.idea/**/mongoSettings.xml
139+
140+
# File-based project format
141+
*.iws
142+
143+
# IntelliJ
144+
out/
145+
146+
# mpeltonen/sbt-idea plugin
147+
.idea_modules/
148+
149+
# JIRA plugin
150+
atlassian-ide-plugin.xml
151+
152+
# Cursive Clojure plugin
153+
.idea/replstate.xml
154+
155+
# SonarLint plugin
156+
.idea/sonarlint/
157+
158+
# Crashlytics plugin (for Android Studio and IntelliJ)
159+
com_crashlytics_export_strings.xml
160+
crashlytics.properties
161+
crashlytics-build.properties
162+
fabric.properties
163+
164+
# Editor-based Rest Client
165+
.idea/httpRequests
166+
167+
# Android studio 3.1+ serialized cache file
168+
.idea/caches/build_file_checksums.ser
169+
170+
.vscode/*
171+
!.vscode/settings.json
172+
!.vscode/tasks.json
173+
!.vscode/launch.json
174+
!.vscode/extensions.json
175+
!.vscode/*.code-snippets
176+
177+
# Local History for Visual Studio Code
178+
.history/
179+
180+
# Built Visual Studio Code Extensions
181+
*.vsix

.goreleaser.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# This is an example .goreleaser.yml file with some sensible defaults.
2+
# Make sure to check the documentation at https://goreleaser.com
3+
project_name: protoc-gen-go_temporal
4+
before:
5+
hooks:
6+
# You may remove this if you don't use go modules.
7+
- go mod tidy
8+
builds:
9+
- id: protoc-gen-go_temporal
10+
main: ./cmd/protoc-gen-go_temporal
11+
env:
12+
- CGO_ENABLED=0
13+
goos:
14+
- linux
15+
- darwin
16+
goarch:
17+
- amd64
18+
- arm64
19+
archives:
20+
- files:
21+
- LICENSE.md
22+
checksum:
23+
name_template: "checksums.txt"
24+
snapshot:
25+
name_template: "{{ incpatch .Version }}-next"
26+
changelog:
27+
sort: asc
28+
filters:
29+
exclude:
30+
- "^docs:"
31+
- "^test:"
32+
release:
33+
github:
34+
owner: cludden
35+
name: protoc-gen-go-temporal
36+
signs:
37+
- artifacts: checksum

LICENSE.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
Copyright for portions of project cludden/protoc-gen-go-temporal are held by Chad Retz, 2021 as part of project cretz/temporal-sdk-go-advanced. All other copyright for project cludden/protoc-gen-go-temporal are held by Chris Ludden, 2023.
2+
3+
MIT License
4+
5+
Copyright (c) 2023 Chris Ludden
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to deal
9+
in the Software without restriction, including without limitation the rights
10+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11+
copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in all
15+
copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23+
SOFTWARE.
24+
25+
MIT License
26+
27+
Copyright (c) 2021 Chad Retz
28+
29+
Permission is hereby granted, free of charge, to any person obtaining a copy
30+
of this software and associated documentation files (the "Software"), to deal
31+
in the Software without restriction, including without limitation the rights
32+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
33+
copies of the Software, and to permit persons to whom the Software is
34+
furnished to do so, subject to the following conditions:
35+
36+
The above copyright notice and this permission notice shall be included in all
37+
copies or substantial portions of the Software.
38+
39+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
40+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
41+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
42+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
43+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
44+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
45+
SOFTWARE.

README.md

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# protoc-gen-go-temporal
2+
3+
This is a fork of [github.com/cretz/temporal-sdk-go-advanced](https://github.com/cretz/temporal-sdk-go-advanced), slightly modified to make it easier to integrate with [buf].
4+
5+
For general usage, see [https://github.com/cretz/temporal-sdk-go-advanced/tree/main/temporalproto]
6+
7+
## Getting Started
8+
1. Install [buf]
9+
2. Initialize buf repository
10+
```shell
11+
mkdir proto && cd proto && buf init
12+
```
13+
3. Add dependency to `buf.yaml`
14+
```yaml
15+
version: v1
16+
deps:
17+
- buf.build/cludden/protoc-gen-go-temporal
18+
breaking:
19+
use:
20+
- FILE
21+
lint:
22+
allow_comment_ignores: true
23+
use:
24+
- BASIC
25+
```
26+
4. Add plugin to `buf.gen.yaml` and exclude it from managed mode go prefix
27+
```yaml
28+
version: v1
29+
managed:
30+
enabled: true
31+
go_package_prefix:
32+
default: github.com/foo/bar/gen
33+
except:
34+
- buf.build/cludden/protoc-gen-go-temporal
35+
plugins:
36+
- plugin: go
37+
out: gen
38+
opt: paths=source_relative
39+
- plugin: go_temporal
40+
out: gen
41+
opt: paths=source_relative
42+
strategy: all
43+
```
44+
45+
## License
46+
Licensed under the [MIT License](LICENSE.md)
47+
Copyright for portions of project cludden/protoc-gen-go-temporal are held by Chad Retz, 2021 as part of project cretz/temporal-sdk-go-advanced. All other copyright for project cludden/protoc-gen-go-temporal are held by Chris Ludden, 2023.

buf.gen.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: v1
2+
managed:
3+
enabled: true
4+
go_package_prefix:
5+
default: github.com/cludden/protoc-gen-go-temporal/gen
6+
plugins:
7+
- plugin: go
8+
out: gen
9+
opt: paths=source_relative
10+
# - plugin: go-grpc
11+
# out: gen
12+
# opt: paths=source_relative
13+
# - plugin: go_temporal
14+
# out: gen
15+
# opt: paths=source_relative
16+
# strategy: all

buf.work.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
version: v1
2+
directories:
3+
- proto

0 commit comments

Comments
 (0)