From 54834ab41f90bb993c99095de3ebbfd4521b7843 Mon Sep 17 00:00:00 2001 From: mfridman <6278244+mfridman@users.noreply.github.com> Date: Thu, 14 Nov 2024 14:07:23 +0000 Subject: [PATCH] detected new plugin versions --- .../protocolbuffers/go/v1.35.2/.dockerignore | 2 ++ plugins/protocolbuffers/go/v1.35.2/Dockerfile | 15 +++++++++++++++ .../go/v1.35.2/buf.plugin.yaml | 19 +++++++++++++++++++ .../go/v1.35.2/eliza/plugin.sum | 1 + .../go/v1.35.2/petapis/plugin.sum | 1 + 5 files changed, 38 insertions(+) create mode 100644 plugins/protocolbuffers/go/v1.35.2/.dockerignore create mode 100644 plugins/protocolbuffers/go/v1.35.2/Dockerfile create mode 100644 plugins/protocolbuffers/go/v1.35.2/buf.plugin.yaml create mode 100644 tests/testdata/buf.build/protocolbuffers/go/v1.35.2/eliza/plugin.sum create mode 100644 tests/testdata/buf.build/protocolbuffers/go/v1.35.2/petapis/plugin.sum diff --git a/plugins/protocolbuffers/go/v1.35.2/.dockerignore b/plugins/protocolbuffers/go/v1.35.2/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/protocolbuffers/go/v1.35.2/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/protocolbuffers/go/v1.35.2/Dockerfile b/plugins/protocolbuffers/go/v1.35.2/Dockerfile new file mode 100644 index 000000000..50963f962 --- /dev/null +++ b/plugins/protocolbuffers/go/v1.35.2/Dockerfile @@ -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/protoc-gen-go@v1.35.2 \ + && 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" ] diff --git a/plugins/protocolbuffers/go/v1.35.2/buf.plugin.yaml b/plugins/protocolbuffers/go/v1.35.2/buf.plugin.yaml new file mode 100644 index 000000000..c4471bc6b --- /dev/null +++ b/plugins/protocolbuffers/go/v1.35.2/buf.plugin.yaml @@ -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 diff --git a/tests/testdata/buf.build/protocolbuffers/go/v1.35.2/eliza/plugin.sum b/tests/testdata/buf.build/protocolbuffers/go/v1.35.2/eliza/plugin.sum new file mode 100644 index 000000000..9205391c2 --- /dev/null +++ b/tests/testdata/buf.build/protocolbuffers/go/v1.35.2/eliza/plugin.sum @@ -0,0 +1 @@ +h1:FMSn7zhSrpekJ9js+TiFRqxeBe4rI2gUYe5UWKmXpio= diff --git a/tests/testdata/buf.build/protocolbuffers/go/v1.35.2/petapis/plugin.sum b/tests/testdata/buf.build/protocolbuffers/go/v1.35.2/petapis/plugin.sum new file mode 100644 index 000000000..b71e55beb --- /dev/null +++ b/tests/testdata/buf.build/protocolbuffers/go/v1.35.2/petapis/plugin.sum @@ -0,0 +1 @@ +h1:6PP6VH51HIlHCyXHJYeC6rw7yyK/70hBdcNWoeyHQVE=