Skip to content

Commit 4624116

Browse files
Update protocolbuffers/go, gRPC, mercari, and PGV plugins (#1677)
1 parent 6954b80 commit 4624116

File tree

62 files changed

+505
-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.

62 files changed

+505
-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.12
2+
FROM golang:1.23.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: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: v1
2+
name: buf.build/bufbuild/validate-cpp
3+
plugin_version: v1.2.1
4+
source_url: https://github.com/bufbuild/protoc-gen-validate
5+
description: Generates C++ code to validate Protobuf messages using protoc-gen-validate constraints.
6+
deps:
7+
- plugin: buf.build/protocolbuffers/cpp:v29.3
8+
output_languages:
9+
- cpp
10+
spdx_license_id: Apache-2.0
11+
license_url: https://github.com/bufbuild/protoc-gen-validate/blob/v1.2.1/LICENSE
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.12
2+
FROM golang:1.23.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: 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-go
3+
plugin_version: v1.2.1
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: Generates Go code to validate Protobuf messages using protoc-gen-validate constraints.
7+
deps:
8+
- plugin: buf.build/protocolbuffers/go:v1.36.4
9+
output_languages:
10+
- go
11+
spdx_license_id: Apache-2.0
12+
license_url: https://github.com/bufbuild/protoc-gen-validate/blob/v1.2.1/LICENSE
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.12
2+
FROM golang:1.23.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-java .
8+
USER nobody
9+
ENTRYPOINT [ "/protoc-gen-validate-java" ]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: v1
2+
name: buf.build/bufbuild/validate-java
3+
plugin_version: v1.2.1
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#java
6+
description: Generates Java code to validate Protobuf messages using protoc-gen-validate constraints.
7+
deps:
8+
- plugin: buf.build/protocolbuffers/java:v29.3
9+
output_languages:
10+
- java
11+
spdx_license_id: Apache-2.0
12+
license_url: https://github.com/bufbuild/protoc-gen-validate/blob/v1.2.1/LICENSE
13+
registry:
14+
maven:
15+
deps:
16+
- build.buf.protoc-gen-validate:pgv-java-stub:1.2.1
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!Dockerfile

0 commit comments

Comments
 (0)