Skip to content

Commit

Permalink
Update community/mfridman-go-json to v1.4.1 (#1548)
Browse files Browse the repository at this point in the history
  • Loading branch information
app-token-plugins[bot] authored Oct 17, 2024
1 parent d865f48 commit df2c3a7
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/community/mfridman-go-json/v1.4.1/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!Dockerfile
15 changes: 15 additions & 0 deletions plugins/community/mfridman-go-json/v1.4.1/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.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" ]
10 changes: 10 additions & 0 deletions plugins/community/mfridman-go-json/v1.4.1/buf.plugin.yaml
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:qUWM+QnG74NYD4ltRQ0wcCgVysZZQTG0StpCzdNF3AA=
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
h1:1+7dKaOe2lxumUAznsnVhWHVYHOoiu+h8dkmlsxHurM=

0 comments on commit df2c3a7

Please sign in to comment.