-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add connect-swift v0.6.0 and validate v1.0.2 plugins (#619)
New plugin versions found. Please review. --------- Co-authored-by: pgmitche <[email protected]> Co-authored-by: Patrick <[email protected]> Co-authored-by: Philip K. Warren <[email protected]>
- Loading branch information
1 parent
0d1b612
commit 7dcc0f9
Showing
25 changed files
with
160 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,12 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM swift:5.8.1-focal AS build | ||
|
||
WORKDIR /app | ||
RUN git clone --depth 1 --branch 0.6.0 https://github.com/bufbuild/connect-swift | ||
WORKDIR /app/connect-swift | ||
RUN swift build -c release --product protoc-gen-connect-swift-mocks --static-swift-stdlib -Xlinker -s | ||
|
||
FROM gcr.io/distroless/cc-debian11 | ||
COPY --from=build --link /app/connect-swift/.build/release/protoc-gen-connect-swift-mocks . | ||
USER nobody | ||
ENTRYPOINT [ "/protoc-gen-connect-swift-mocks" ] |
26 changes: 26 additions & 0 deletions
26
plugins/bufbuild/connect-swift-mocks/v0.6.0/buf.plugin.yaml
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,26 @@ | ||
version: v1 | ||
name: buf.build/bufbuild/connect-swift-mocks | ||
plugin_version: v0.6.0 | ||
source_url: https://github.com/bufbuild/connect-swift | ||
description: Generates mocks that are compatible with Connect-Swift clients. | ||
deps: | ||
- plugin: buf.build/apple/swift:v1.22.0 | ||
output_languages: | ||
- swift | ||
registry: | ||
swift: | ||
deps: | ||
- source: https://github.com/bufbuild/connect-swift.git | ||
package: connect-swift | ||
products: [ ConnectMocks ] | ||
swift_versions: [ ".v5" ] | ||
version: 0.6.0 | ||
platforms: | ||
macos: v10_15 | ||
ios: v12 | ||
tvos: v13 | ||
opts: | ||
- Visibility=Public | ||
- FileNaming=PathToUnderscores | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/bufbuild/connect-swift/blob/0.6.0/LICENSE |
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,12 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM swift:5.8.1-focal AS build | ||
|
||
WORKDIR /app | ||
RUN git clone --depth 1 --branch 0.6.0 https://github.com/bufbuild/connect-swift | ||
WORKDIR /app/connect-swift | ||
RUN swift build -c release --product protoc-gen-connect-swift --static-swift-stdlib -Xlinker -s | ||
|
||
FROM gcr.io/distroless/cc-debian11 | ||
COPY --from=build --link /app/connect-swift/.build/release/protoc-gen-connect-swift . | ||
USER nobody | ||
ENTRYPOINT [ "/protoc-gen-connect-swift" ] |
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,26 @@ | ||
version: v1 | ||
name: buf.build/bufbuild/connect-swift | ||
plugin_version: v0.6.0 | ||
source_url: https://github.com/bufbuild/connect-swift | ||
description: Idiomatic gRPC & Connect RPCs for Swift. | ||
deps: | ||
- plugin: buf.build/apple/swift:v1.22.0 | ||
output_languages: | ||
- swift | ||
registry: | ||
swift: | ||
deps: | ||
- source: https://github.com/bufbuild/connect-swift.git | ||
package: connect-swift | ||
products: [ Connect ] | ||
swift_versions: [ ".v5" ] | ||
version: 0.6.0 | ||
platforms: | ||
macos: v10_15 | ||
ios: v12 | ||
tvos: v13 | ||
opts: | ||
- Visibility=Public | ||
- FileNaming=PathToUnderscores | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/bufbuild/connect-swift/blob/0.6.0/LICENSE |
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,9 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM golang:1.20.5-bullseye AS build | ||
RUN CGO_ENABLED=0 go install -ldflags "-s -w" -trimpath github.com/envoyproxy/protoc-gen-validate/cmd/[email protected] | ||
|
||
FROM scratch | ||
COPY --from=build --link /etc/passwd /etc/passwd | ||
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-validate-cpp . | ||
USER nobody | ||
ENTRYPOINT [ "/protoc-gen-validate-cpp" ] |
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 @@ | ||
version: v1 | ||
name: buf.build/bufbuild/validate-cpp | ||
plugin_version: v1.0.2 | ||
source_url: https://github.com/bufbuild/protoc-gen-validate | ||
description: Generates C++ code to validate Protobuf messages using protoc-gen-validate constraints. | ||
deps: | ||
- plugin: buf.build/protocolbuffers/cpp:v23.3 | ||
output_languages: | ||
- cpp | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/bufbuild/protoc-gen-validate/blob/v1.0.2/LICENSE |
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,9 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM golang:1.20.5-bullseye AS build | ||
RUN CGO_ENABLED=0 go install -ldflags "-s -w" -trimpath github.com/envoyproxy/protoc-gen-validate/cmd/[email protected] | ||
|
||
FROM scratch | ||
COPY --from=build --link /etc/passwd /etc/passwd | ||
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-validate-go . | ||
USER nobody | ||
ENTRYPOINT [ "/protoc-gen-validate-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,11 @@ | ||
version: v1 | ||
name: buf.build/bufbuild/validate-go | ||
plugin_version: v1.0.2 | ||
source_url: https://github.com/bufbuild/protoc-gen-validate | ||
description: Generates Go code to validate Protobuf messages using protoc-gen-validate constraints. | ||
deps: | ||
- plugin: buf.build/protocolbuffers/go:v1.31.0 | ||
output_languages: | ||
- go | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/bufbuild/protoc-gen-validate/blob/v1.0.2/LICENSE |
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,9 @@ | ||
# syntax=docker/dockerfile:1.4 | ||
FROM golang:1.20.5-bullseye AS build | ||
RUN CGO_ENABLED=0 go install -ldflags "-s -w" -trimpath github.com/envoyproxy/protoc-gen-validate/cmd/[email protected] | ||
|
||
FROM scratch | ||
COPY --from=build --link /etc/passwd /etc/passwd | ||
COPY --from=build --link --chown=root:root /go/bin/protoc-gen-validate-java . | ||
USER nobody | ||
ENTRYPOINT [ "/protoc-gen-validate-java" ] |
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 @@ | ||
version: v1 | ||
name: buf.build/bufbuild/validate-java | ||
plugin_version: v1.0.2 | ||
source_url: https://github.com/bufbuild/protoc-gen-validate | ||
description: Generates Java code to validate Protobuf messages using protoc-gen-validate constraints. | ||
deps: | ||
- plugin: buf.build/protocolbuffers/java:v23.3 | ||
output_languages: | ||
- java | ||
spdx_license_id: Apache-2.0 | ||
license_url: https://github.com/bufbuild/protoc-gen-validate/blob/v1.0.2/LICENSE | ||
registry: | ||
maven: | ||
deps: | ||
- build.buf.protoc-gen-validate:pgv-java-stub:1.0.2 |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/connect-swift-mocks/v0.6.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:ryyGfdjE+6xSE6LxYx66pDaPATE5wyhCPdH/Tnb1PT4= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/connect-swift-mocks/v0.6.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:2HOAos9kseDVKDxLcXzESkiteNEnWuMYYWJujRbvons= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/connect-swift/v0.6.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:vpe8c/VzVamU9ttCJWtk2iT2aWsCD47KWVN6Xd4jhDw= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/connect-swift/v0.6.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:E8QVNgzAzK1BpanCUwE7YTP5Ha/l8ysydC5Aw+MaMS0= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/validate-cpp/v1.0.2/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:TBO3mgHKqRFEyfA4AEheREcyHJ0pJNkkwkLMfQzloCU= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/validate-cpp/v1.0.2/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:jiocdIprUNUU3wVV2Px/oSD1wuPXWWerkzPcTFhqkmk= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/validate-go/v1.0.2/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:puu8FKu4EDgR16z7LYbISbJv4Lgn3Rdh9gN9fVzux0k= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/validate-go/v1.0.2/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:2aorQdLLQIb1C3nKz0Per5FL0gij2Y3iBq+/GlfHnxA= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/validate-java/v1.0.2/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:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/bufbuild/validate-java/v1.0.2/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:47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU= |