-
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.
Update connectrpc/go to v1.18.0 (#1651)
- Loading branch information
1 parent
f880fc1
commit 7d58554
Showing
5 changed files
with
39 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,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,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 connectrpc.com/connect/cmd/[email protected] \ | ||
&& mv /go/bin/${GOOS}_${GOARCH}/protoc-gen-connect-go /go/bin/protoc-gen-connect-go || true | ||
|
||
FROM scratch | ||
COPY --from=build --link --chown=root:root /etc/passwd /etc/passwd | ||
COPY --from=build --link /go/bin/protoc-gen-connect-go / | ||
USER nobody | ||
ENTRYPOINT [ "/protoc-gen-connect-go" ] |
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,20 @@ | ||
version: v1 | ||
name: buf.build/connectrpc/go | ||
plugin_version: v1.18.0 | ||
source_url: https://github.com/connectrpc/connect-go | ||
integration_guide_url: https://connectrpc.com/docs/go/getting-started | ||
description: Generates client and server stubs for connectrpc.com/connect. Compatible with the gRPC, gRPC-Web, and Connect RPC protocols. | ||
deps: | ||
- plugin: buf.build/protocolbuffers/go:v1.36.2 | ||
output_languages: | ||
- go | ||
registry: | ||
go: | ||
min_version: "1.21" | ||
deps: | ||
- module: connectrpc.com/connect | ||
version: v1.18.0 | ||
opts: | ||
- paths=source_relative | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/connectrpc/connect-go/blob/v1.18.0/LICENSE |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/connectrpc/go/v1.18.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:u23hequoE+Iv/KIkcXvKs9udlNUQAhml/9mKE4M9vUc= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/connectrpc/go/v1.18.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:AgnlcVVjlOtjzOJY9m9yC5oH80DRlmvsmpwUTJG5RWM= |