Skip to content

Commit cbde03f

Browse files
Update protocolbuffers/go v1.35.2 (#1591)
New plugin versions found. Please review. Co-authored-by: mfridman <[email protected]>
1 parent 2501402 commit cbde03f

File tree

5 files changed

+38
-0
lines changed

5 files changed

+38
-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: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# syntax=docker/dockerfile:1.10
2+
FROM --platform=$BUILDPLATFORM golang:1.23.3-bookworm AS build
3+
4+
ARG TARGETOS TARGETARCH
5+
ENV CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH
6+
7+
RUN --mount=type=cache,target=/go/pkg/mod \
8+
go install -ldflags "-s -w" -trimpath google.golang.org/protobuf/cmd/[email protected] \
9+
&& mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-go /go/bin/protoc-gen-go || true
10+
11+
FROM scratch
12+
COPY --from=build --link /etc/passwd /etc/passwd
13+
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-go .
14+
USER nobody
15+
ENTRYPOINT [ "/protoc-gen-go" ]
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/protocolbuffers/go
3+
plugin_version: v1.35.2
4+
source_url: https://github.com/protocolbuffers/protobuf-go
5+
integration_guide_url: https://protobuf.dev/getting-started/gotutorial
6+
description: Base types for Go. Generates message and enum types.
7+
output_languages:
8+
- go
9+
registry:
10+
go:
11+
# https://github.com/protocolbuffers/protobuf-go/blob/v1.35.2/go.mod#L3
12+
min_version: "1.21"
13+
deps:
14+
- module: google.golang.org/protobuf
15+
version: v1.35.2
16+
opts:
17+
- paths=source_relative
18+
spdx_license_id: BSD-3-Clause
19+
license_url: https://github.com/protocolbuffers/protobuf-go/blob/v1.35.2/LICENSE
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:FMSn7zhSrpekJ9js+TiFRqxeBe4rI2gUYe5UWKmXpio=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:6PP6VH51HIlHCyXHJYeC6rw7yyK/70hBdcNWoeyHQVE=

0 commit comments

Comments
 (0)