-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add community/mfridman-go-json v1.2.0 (#1029)
This PR adds a new community plugin which supersedes the existing one mitchellh/protoc-gen-go-json. I've disabled further updates of that plugin, and will mark it deprecated shortly. This should also resolve the upstream issue folks have been asking about. mitchellh/protoc-gen-go-json#17
- Loading branch information
Showing
7 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
source: | ||
github: | ||
owner: mfridman | ||
repository: protoc-gen-go-json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
* | ||
!Dockerfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# syntax=docker/dockerfile:1.6 | ||
FROM golang:1.21.6-bookworm AS build | ||
RUN --mount=type=cache,target=/go/pkg/mod \ | ||
CGO_ENABLED=0 \ | ||
go install -ldflags="-s -w" -trimpath github.com/mfridman/[email protected] | ||
|
||
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" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.2.0 | ||
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.2.0/LICENSE.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
source: | ||
# Use mfridman/protoc-gen-go-json instead | ||
# For more info, see https://gist.github.com/mitchellh/90029601268e59a29e64e55bab1c5bdc | ||
disabled: true | ||
github: | ||
owner: mitchellh | ||
repository: protoc-gen-go-json |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/community/mfridman-go-json/v1.2.0/eliza/plugin.sum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
h1:JbopqKq2spPZ3zIQYc293w7pmDtYyjyQo38WP+zvzb4= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/community/mfridman-go-json/v1.2.0/petapis/plugin.sum
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
h1:Qi5ZKfam4ZBXkerC7L9HmKmypXYgdzj2FRQU0Zkg/Pk= |