Skip to content

Commit 076d0c8

Browse files
Update protocolbuffers/go to v1.36.5 (#1702)
1 parent 22febf0 commit 076d0c8

File tree

5 files changed

+39
-0
lines changed

5 files changed

+39
-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.12
2+
FROM --platform=$BUILDPLATFORM golang:1.23.6-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: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: v1
2+
name: buf.build/protocolbuffers/go
3+
plugin_version: v1.36.5
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.36.5/go.mod#L3
12+
min_version: "1.21"
13+
deps:
14+
- module: google.golang.org/protobuf
15+
version: v1.36.5
16+
opts:
17+
- paths=source_relative
18+
- default_api_level=API_HYBRID
19+
spdx_license_id: BSD-3-Clause
20+
license_url: https://github.com/protocolbuffers/protobuf-go/blob/v1.36.5/LICENSE
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:5uQsaNKpejHbPIfwxiLPhzKpDA3rHI3zoriPQCvuS/o=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:hhNZq5n92FPdBokLlIk9D1KR8Q50Z1+KPBv1fxyXstA=

0 commit comments

Comments
 (0)