From dabf1ca610e7c9a1553ecd0ea2a62559ec516467 Mon Sep 17 00:00:00 2001 From: mfridman <6278244+mfridman@users.noreply.github.com> Date: Thu, 17 Oct 2024 14:07:22 +0000 Subject: [PATCH] detected new plugin versions --- .../mfridman-go-json/v1.4.1/.dockerignore | 2 ++ .../community/mfridman-go-json/v1.4.1/Dockerfile | 15 +++++++++++++++ .../mfridman-go-json/v1.4.1/buf.plugin.yaml | 10 ++++++++++ .../mfridman-go-json/v1.4.1/eliza/plugin.sum | 1 + .../mfridman-go-json/v1.4.1/petapis/plugin.sum | 1 + 5 files changed, 29 insertions(+) create mode 100644 plugins/community/mfridman-go-json/v1.4.1/.dockerignore create mode 100644 plugins/community/mfridman-go-json/v1.4.1/Dockerfile create mode 100644 plugins/community/mfridman-go-json/v1.4.1/buf.plugin.yaml create mode 100644 tests/testdata/buf.build/community/mfridman-go-json/v1.4.1/eliza/plugin.sum create mode 100644 tests/testdata/buf.build/community/mfridman-go-json/v1.4.1/petapis/plugin.sum diff --git a/plugins/community/mfridman-go-json/v1.4.1/.dockerignore b/plugins/community/mfridman-go-json/v1.4.1/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/community/mfridman-go-json/v1.4.1/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/community/mfridman-go-json/v1.4.1/Dockerfile b/plugins/community/mfridman-go-json/v1.4.1/Dockerfile new file mode 100644 index 000000000..aa5c4392b --- /dev/null +++ b/plugins/community/mfridman-go-json/v1.4.1/Dockerfile @@ -0,0 +1,15 @@ +# syntax=docker/dockerfile:1.10 +FROM --platform=$BUILDPLATFORM golang:1.23.2-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 github.com/mfridman/protoc-gen-go-json@v1.4.1 \ + && mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-go-json /go/bin/protoc-gen-go-json || true + +FROM scratch +COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd +COPY --from=build --link --chown=root:root /go/bin/protoc-gen-go-json . +USER nobody +ENTRYPOINT [ "/protoc-gen-go-json" ] diff --git a/plugins/community/mfridman-go-json/v1.4.1/buf.plugin.yaml b/plugins/community/mfridman-go-json/v1.4.1/buf.plugin.yaml new file mode 100644 index 000000000..09ec7fbcf --- /dev/null +++ b/plugins/community/mfridman-go-json/v1.4.1/buf.plugin.yaml @@ -0,0 +1,10 @@ +version: v1 +name: buf.build/community/mfridman-go-json +plugin_version: v1.4.1 +source_url: https://github.com/mfridman/protoc-gen-go-json +integration_guide_url: https://github.com/mfridman/protoc-gen-go-json#usage +description: Generate marshalling & unmarshalling code using protojson. +output_languages: + - go +spdx_license_id: MIT +license_url: https://github.com/mfridman/protoc-gen-go-json/blob/v1.4.1/LICENSE.md diff --git a/tests/testdata/buf.build/community/mfridman-go-json/v1.4.1/eliza/plugin.sum b/tests/testdata/buf.build/community/mfridman-go-json/v1.4.1/eliza/plugin.sum new file mode 100644 index 000000000..4319e9568 --- /dev/null +++ b/tests/testdata/buf.build/community/mfridman-go-json/v1.4.1/eliza/plugin.sum @@ -0,0 +1 @@ +h1:qUWM+QnG74NYD4ltRQ0wcCgVysZZQTG0StpCzdNF3AA= diff --git a/tests/testdata/buf.build/community/mfridman-go-json/v1.4.1/petapis/plugin.sum b/tests/testdata/buf.build/community/mfridman-go-json/v1.4.1/petapis/plugin.sum new file mode 100644 index 000000000..8e35b8539 --- /dev/null +++ b/tests/testdata/buf.build/community/mfridman-go-json/v1.4.1/petapis/plugin.sum @@ -0,0 +1 @@ +h1:1+7dKaOe2lxumUAznsnVhWHVYHOoiu+h8dkmlsxHurM=