Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update protocolbuffers/go v1.35.2 #1591

Merged
merged 1 commit into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions plugins/protocolbuffers/go/v1.35.2/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
15 changes: 15 additions & 0 deletions plugins/protocolbuffers/go/v1.35.2/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# syntax=docker/dockerfile:1.10
FROM --platform=$BUILDPLATFORM golang:1.23.3-bookworm AS build

ARG TARGETOS TARGETARCH
ENV CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH

RUN --mount=type=cache,target=/go/pkg/mod \
go install -ldflags "-s -w" -trimpath google.golang.org/protobuf/cmd/[email protected] \
&& mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-go /go/bin/protoc-gen-go || true

FROM scratch
COPY --from=build --link /etc/passwd /etc/passwd
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-go .
USER nobody
ENTRYPOINT [ "/protoc-gen-go" ]
19 changes: 19 additions & 0 deletions plugins/protocolbuffers/go/v1.35.2/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: v1
name: buf.build/protocolbuffers/go
plugin_version: v1.35.2
source_url: https://github.com/protocolbuffers/protobuf-go
integration_guide_url: https://protobuf.dev/getting-started/gotutorial
description: Base types for Go. Generates message and enum types.
output_languages:
- go
registry:
go:
# https://github.com/protocolbuffers/protobuf-go/blob/v1.35.2/go.mod#L3
min_version: "1.21"
deps:
- module: google.golang.org/protobuf
version: v1.35.2
opts:
- paths=source_relative
spdx_license_id: BSD-3-Clause
license_url: https://github.com/protocolbuffers/protobuf-go/blob/v1.35.2/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:FMSn7zhSrpekJ9js+TiFRqxeBe4rI2gUYe5UWKmXpio=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:6PP6VH51HIlHCyXHJYeC6rw7yyK/70hBdcNWoeyHQVE=