From a1fa02c1f9b8ef65d443ad6b3f0b99f5863b6f4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Mart=C3=ADnez?= <49537445+JasterV@users.noreply.github.com> Date: Mon, 20 Jul 2026 15:05:51 +0200 Subject: [PATCH] Support `protoc-gen-connect-openapi` (#1922) Co-authored-by: Taiki Endo --- TOOLS.md | 1 + manifests/protoc-gen-connect-openapi.json | 92 +++++++++++++++++++ .../base/protoc-gen-connect-openapi.json | 23 +++++ 3 files changed, 116 insertions(+) create mode 100644 manifests/protoc-gen-connect-openapi.json create mode 100644 tools/codegen/base/protoc-gen-connect-openapi.json diff --git a/TOOLS.md b/TOOLS.md index 89986704..f6f3ff3a 100644 --- a/TOOLS.md +++ b/TOOLS.md @@ -87,6 +87,7 @@ See the [Supported tools section in README.md](README.md#supported-tools) for ho | [**parse-dockerfile**](https://github.com/taiki-e/parse-dockerfile) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/taiki-e/parse-dockerfile/releases) | Linux, macOS, Windows | [Apache-2.0](https://github.com/taiki-e/parse-dockerfile/blob/main/LICENSE-APACHE) OR [MIT](https://github.com/taiki-e/parse-dockerfile/blob/main/LICENSE-MIT) | | | [**prek**](https://github.com/j178/prek) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/j178/prek/releases) | Linux, macOS, Windows | [MIT](https://github.com/j178/prek/blob/master/LICENSE) | | | [**protoc**](https://github.com/protocolbuffers/protobuf) | `$HOME/.install-action/bin` | [GitHub Releases](https://github.com/protocolbuffers/protobuf/releases) | Linux, macOS, Windows | [BSD-3-Clause](https://github.com/protocolbuffers/protobuf/blob/main/LICENSE) | | +| [**protoc-gen-connect-openapi**](https://github.com/sudorandom/protoc-gen-connect-openapi) | `$HOME/.install-action/bin` | [GitHub Releases](https://github.com/sudorandom/protoc-gen-connect-openapi/releases) | Linux, Windows | [MIT](https://github.com/sudorandom/protoc-gen-connect-openapi/blob/main/LICENSE) | | | [**rclone**](https://github.com/rclone/rclone) | `$HOME/.install-action/bin` | [GitHub Releases](https://github.com/rclone/rclone/releases) | Linux, macOS, Windows | [MIT](https://github.com/rclone/rclone/blob/master/COPYING) | | | [**release-plz**](https://release-plz.dev/) | `$CARGO_HOME/bin` | [GitHub Releases](https://github.com/release-plz/release-plz/releases) | Linux, macOS, Windows | [MIT](https://github.com/release-plz/release-plz/blob/main/LICENSE-MIT) OR [Apache-2.0](https://github.com/release-plz/release-plz/blob/main/LICENSE-APACHE) | | | [**rust**](https://rust-lang.org) | `$CARGO_HOME/bin` | rustup | Linux, macOS, Windows | [Apache-2.0 OR MIT](https://github.com/rust-lang/rust/blob/main/COPYRIGHT) | | diff --git a/manifests/protoc-gen-connect-openapi.json b/manifests/protoc-gen-connect-openapi.json new file mode 100644 index 00000000..72ac4a67 --- /dev/null +++ b/manifests/protoc-gen-connect-openapi.json @@ -0,0 +1,92 @@ +{ + "rust_crate": null, + "template": { + "x86_64_linux_musl": { + "url": "https://github.com/sudorandom/protoc-gen-connect-openapi/releases/download/v${version}/protoc-gen-connect-openapi_${version}_linux_amd64.tar.gz" + }, + "x86_64_macos": { + "url": "https://github.com/sudorandom/protoc-gen-connect-openapi/releases/download/v${version}/protoc-gen-connect-openapi_${version}_darwin_all.tar.gz" + }, + "x86_64_windows": { + "url": "https://github.com/sudorandom/protoc-gen-connect-openapi/releases/download/v${version}/protoc-gen-connect-openapi_${version}_windows_amd64.tar.gz" + }, + "aarch64_linux_musl": { + "url": "https://github.com/sudorandom/protoc-gen-connect-openapi/releases/download/v${version}/protoc-gen-connect-openapi_${version}_linux_arm64.tar.gz" + }, + "aarch64_windows": { + "url": "https://github.com/sudorandom/protoc-gen-connect-openapi/releases/download/v${version}/protoc-gen-connect-openapi_${version}_windows_arm64.tar.gz" + } + }, + "latest": { + "version": "0.25.7" + }, + "0.25": { + "version": "0.25.7" + }, + "0.25.7": { + "x86_64_linux_musl": { + "etag": "0x8DECA3D49E32F02", + "hash": "ddea887b432df5471ac67ef6167726b46a4f337af0eec4f5f88998fac5fb6cc2" + }, + "x86_64_macos": { + "etag": "0x8DECA3D4A995633", + "hash": "717c86c3ca0346457b3e4c5f69596b28b2b2ec6bf047498001c02bfad8e59f52" + }, + "x86_64_windows": { + "etag": "0x8DECA3D49E80B84", + "hash": "aa22bc1563b9701b67ca3b1568ee07f56b6d04b37643eb36dfea1103af3f12ca" + }, + "aarch64_linux_musl": { + "etag": "0x8DECA3D49DEEE03", + "hash": "d7229a3ac65974e024210522cb3920e764fddf408e26cb501eb41406e514d6ec" + }, + "aarch64_windows": { + "etag": "0x8DECA3D4A02EF5C", + "hash": "ea2853b19d937dc4831deaa0fca417ba4362311e0a0a554708d1486f7535bd58" + } + }, + "0.25.6": { + "x86_64_linux_musl": { + "etag": "0x8DE9D74861DFA1C", + "hash": "3bcd62bb8353e967018c17e4af3a908255c6e1764ab5b3e10e985193ca5750a8" + }, + "x86_64_macos": { + "etag": "0x8DE9D7486AAF55F", + "hash": "e456d56052049748ceb113eb93e5929a0278db94e3acdc159bcefc7260aea7cf" + }, + "x86_64_windows": { + "etag": "0x8DE9D7486219F83", + "hash": "e478565b1e1aac58bf16fbb443b5706b3e1facbfb6d0a47c94ea6b51ae0c5482" + }, + "aarch64_linux_musl": { + "etag": "0x8DE9D7486204178", + "hash": "dacd2874adf145ce0ff401d503652e92a8fd391d2f1f89d4f8ac274f925ec525" + }, + "aarch64_windows": { + "etag": "0x8DE9D7486239913", + "hash": "a72bc2194fcef04e16ef4cde1c114052d03fac4dfc9ab85e0f9844ddaa074259" + } + }, + "0.25.5": { + "x86_64_linux_musl": { + "etag": "0x8DE7B5765BA6036", + "hash": "a9cbf821d42bc12a91b853d1fc8c3ffbea19bd8a6096d8db8b39263f1f67da74" + }, + "x86_64_macos": { + "etag": "0x8DE7B576667DE0B", + "hash": "07af8e3adbac202a0d09b97d281dcdb24949d642e43c101ea2a1a0d09aff7bd0" + }, + "x86_64_windows": { + "etag": "0x8DE7B5765C15D32", + "hash": "a81e3091acda45b37e375af3399b70c278e9ea365ea92b68660ad5d7943ac85f" + }, + "aarch64_linux_musl": { + "etag": "0x8DE7B5765BF8A80", + "hash": "287575b705cdd4a037baef75adcd8813566c4fda2eba5399483a9cbad8be7422" + }, + "aarch64_windows": { + "etag": "0x8DE7B5765BC80A1", + "hash": "b066a20cf1c18bdad4daee223014a8635d2189ff80c2c8a921967968cfe20d46" + } + } +} diff --git a/tools/codegen/base/protoc-gen-connect-openapi.json b/tools/codegen/base/protoc-gen-connect-openapi.json new file mode 100644 index 00000000..9da029b2 --- /dev/null +++ b/tools/codegen/base/protoc-gen-connect-openapi.json @@ -0,0 +1,23 @@ +{ + "repository": "https://github.com/sudorandom/protoc-gen-connect-openapi", + "license_markdown": "[MIT](https://github.com/sudorandom/protoc-gen-connect-openapi/blob/main/LICENSE)", + "tag_prefix": "v", + "version_range": ">= 0.25.5", + "platform": { + "x86_64_linux_musl": { + "asset_name": "${package}_${version}_linux_amd64.tar.gz" + }, + "x86_64_macos": { + "asset_name": "${package}_${version}_darwin_all.tar.gz" + }, + "x86_64_windows": { + "asset_name": "${package}_${version}_windows_amd64.tar.gz" + }, + "aarch64_linux_musl": { + "asset_name": "${package}_${version}_linux_arm64.tar.gz" + }, + "aarch64_windows": { + "asset_name": "${package}_${version}_windows_arm64.tar.gz" + } + } +}