Skip to content

Commit

Permalink
Update protocolbuffers/go v1.35.2 (#1591)
Browse files Browse the repository at this point in the history
New plugin versions found. Please review.

Co-authored-by: mfridman <[email protected]>
  • Loading branch information
app-token-plugins[bot] and mfridman authored Nov 14, 2024
1 parent 2501402 commit cbde03f
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 0 deletions.
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=

0 comments on commit cbde03f

Please sign in to comment.