Skip to content

Commit b111bec

Browse files
Update protoc, connectrpc/python, and pgv plugins (#2139)
1 parent 6917a66 commit b111bec

File tree

79 files changed

+697
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

79 files changed

+697
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!Dockerfile
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# syntax=docker/dockerfile:1.19
2+
FROM golang:1.25.5-bookworm AS build
3+
RUN CGO_ENABLED=0 go install -ldflags "-s -w" -trimpath github.com/envoyproxy/protoc-gen-validate/cmd/[email protected]
4+
5+
FROM scratch
6+
COPY --from=build --link /etc/passwd /etc/passwd
7+
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-validate-cpp .
8+
USER nobody
9+
ENTRYPOINT [ "/protoc-gen-validate-cpp" ]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: v1
2+
name: buf.build/bufbuild/validate-cpp
3+
plugin_version: v1.3.0
4+
source_url: https://github.com/bufbuild/protoc-gen-validate
5+
description: Deprecated in favor of https://github.com/bufbuild/protovalidate-cc which does not require code generation.
6+
deps:
7+
- plugin: buf.build/protocolbuffers/cpp:v33.2
8+
output_languages:
9+
- cpp
10+
spdx_license_id: Apache-2.0
11+
license_url: https://github.com/bufbuild/protoc-gen-validate/blob/v1.3.0/LICENSE
12+
deprecated: true
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!Dockerfile
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# syntax=docker/dockerfile:1.19
2+
FROM golang:1.25.5-bookworm AS build
3+
RUN CGO_ENABLED=0 go install -ldflags "-s -w" -trimpath github.com/envoyproxy/protoc-gen-validate/cmd/[email protected]
4+
5+
FROM scratch
6+
COPY --from=build --link /etc/passwd /etc/passwd
7+
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-validate-go .
8+
USER nobody
9+
ENTRYPOINT [ "/protoc-gen-validate-go" ]
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: v1
2+
name: buf.build/bufbuild/validate-go
3+
plugin_version: v1.3.0
4+
source_url: https://github.com/bufbuild/protoc-gen-validate
5+
integration_guide_url: https://github.com/bufbuild/protoc-gen-validate/blob/main/docs.md#go
6+
description: Deprecated in favor of https://github.com/bufbuild/protovalidate-go which does not require code generation.
7+
deps:
8+
- plugin: buf.build/protocolbuffers/go:v1.36.10
9+
output_languages:
10+
- go
11+
spdx_license_id: Apache-2.0
12+
license_url: https://github.com/bufbuild/protoc-gen-validate/blob/v1.3.0/LICENSE
13+
deprecated: true
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!Dockerfile
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# syntax=docker/dockerfile:1.19
2+
FROM python:3.11.14-bookworm AS build
3+
WORKDIR /app
4+
RUN python -mvenv /app
5+
RUN . ./bin/activate \
6+
&& pip install --no-cache-dir protoc-gen-connect-python==0.6.0 \
7+
&& pip uninstall --yes pip setuptools \
8+
&& rm -f bin/activate.fish bin/activate.csh bin/Activate.ps1
9+
10+
FROM gcr.io/distroless/python3-debian12:latest@sha256:8ce6bba3f793ba7d834467dfe18983c42f9b223604970273e9e3a22b1891fc27 AS base
11+
12+
FROM scratch
13+
COPY --link --from=base / /
14+
COPY --link --from=build --chmod=0755 /app /app
15+
USER nobody
16+
ENTRYPOINT [ "/app/bin/protoc-gen-connect-python" ]
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
version: v1
2+
name: buf.build/connectrpc/python
3+
plugin_version: v0.6.0
4+
source_url: https://github.com/connectrpc/connect-python
5+
description: Generates client and server stubs for Connect Python. Compatible with the Connect RPC protocol.
6+
spdx_license_id: Apache-2.0
7+
license_url: https://github.com/connectrpc/connect-python/blob/v0.6.0/LICENSE
8+
deps:
9+
- plugin: buf.build/protocolbuffers/python:v33.2
10+
output_languages:
11+
- python
12+
registry:
13+
python:
14+
package_type: "runtime"
15+
# https://github.com/connectrpc/connect-python/blob/v0.6.0/protoc-gen-connect-python/pyproject.toml#L11
16+
requires_python: ">=3.10"
17+
deps:
18+
# https://pypi.org/project/connect-python/
19+
- "connect-python >= 0.6.0"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
*
2+
!BUILD
3+
!cpp.cc
4+
!Dockerfile

0 commit comments

Comments
 (0)