Skip to content

Commit

Permalink
Update protocolbuffers/go to v1.36.5 (#1702)
Browse files Browse the repository at this point in the history
  • Loading branch information
app-token-plugins[bot] authored Feb 6, 2025
1 parent 22febf0 commit 076d0c8
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/protocolbuffers/go/v1.36.5/.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.36.5/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# syntax=docker/dockerfile:1.12
FROM --platform=$BUILDPLATFORM golang:1.23.6-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" ]
20 changes: 20 additions & 0 deletions plugins/protocolbuffers/go/v1.36.5/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: v1
name: buf.build/protocolbuffers/go
plugin_version: v1.36.5
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.36.5/go.mod#L3
min_version: "1.21"
deps:
- module: google.golang.org/protobuf
version: v1.36.5
opts:
- paths=source_relative
- default_api_level=API_HYBRID
spdx_license_id: BSD-3-Clause
license_url: https://github.com/protocolbuffers/protobuf-go/blob/v1.36.5/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:5uQsaNKpejHbPIfwxiLPhzKpDA3rHI3zoriPQCvuS/o=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:hhNZq5n92FPdBokLlIk9D1KR8Q50Z1+KPBv1fxyXstA=

0 comments on commit 076d0c8

Please sign in to comment.