Skip to content

Commit f880fc1

Browse files
Update protocolbuffers/go to v1.36.2 (#1650)
1 parent b8432ce commit f880fc1

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.4-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/protoc-gen-go@v1.36.2 \
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.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.36.2/go.mod#L3
12+
min_version: "1.21"
13+
deps:
14+
- module: google.golang.org/protobuf
15+
version: v1.36.2
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.2/LICENSE
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:bYZStzYmjeokewKsEYwZSjv5bnnisLyRtU0GzhQ/2/w=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:+xJbS4IqPMuDFI10ywKKUDbEuXJXp6x11hMhUviq1k4=

0 commit comments

Comments
 (0)