Skip to content

Commit

Permalink
detected new plugin versions
Browse files Browse the repository at this point in the history
  • Loading branch information
mfridman authored and github-actions[bot] committed Dec 16, 2024
1 parent 56a8d4d commit 258a321
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.36.0/.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.0/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.4-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/protoc-gen-go@v1.36.0 \
&& 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.36.0/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.36.0
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.0/go.mod#L3
min_version: "1.21"
deps:
- module: google.golang.org/protobuf
version: v1.36.0
opts:
- paths=source_relative
spdx_license_id: BSD-3-Clause
license_url: https://github.com/protocolbuffers/protobuf-go/blob/v1.36.0/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:Fy3ojeHRvQJW8n1atoPxOlUWag0eDPHrEals+14g4cs=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:ZqdY3Bvd5yh8zGZoAkpwZz7S0XUZwxnC9lMeFp9kVv4=

0 comments on commit 258a321

Please sign in to comment.