diff --git a/plugins/protocolbuffers/dart/v23.0.0/.dockerignore b/plugins/protocolbuffers/dart/v23.0.0/.dockerignore new file mode 100644 index 00000000..5d0f124f --- /dev/null +++ b/plugins/protocolbuffers/dart/v23.0.0/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/protocolbuffers/dart/v23.0.0/Dockerfile b/plugins/protocolbuffers/dart/v23.0.0/Dockerfile new file mode 100644 index 00000000..6986c6b2 --- /dev/null +++ b/plugins/protocolbuffers/dart/v23.0.0/Dockerfile @@ -0,0 +1,15 @@ +# syntax=docker/dockerfile:1.18 +FROM dart:3.9.3-sdk AS build + +WORKDIR /build +RUN git clone --depth 1 --branch protoc_plugin-v23.0.0 https://github.com/google/protobuf.dart.git \ + && cd protobuf.dart/protoc_plugin \ + && dart pub get \ + && dart compile exe bin/protoc_plugin.dart -o /build/protoc-gen-dart + +FROM scratch +COPY --from=build --link /etc/passwd /etc/passwd +COPY --from=build --link /runtime/ / +COPY --from=build --link /build/protoc-gen-dart . +USER nobody +ENTRYPOINT [ "/protoc-gen-dart" ] diff --git a/plugins/protocolbuffers/dart/v23.0.0/buf.plugin.yaml b/plugins/protocolbuffers/dart/v23.0.0/buf.plugin.yaml new file mode 100644 index 00000000..3b8bec23 --- /dev/null +++ b/plugins/protocolbuffers/dart/v23.0.0/buf.plugin.yaml @@ -0,0 +1,9 @@ +version: v1 +name: buf.build/protocolbuffers/dart +plugin_version: v23.0.0 +source_url: https://github.com/google/protobuf.dart +description: Base types for Dart. Generates message and enum types. +output_languages: + - dart +spdx_license_id: BSD-3-Clause +license_url: https://github.com/google/protobuf.dart/blob/protoc_plugin-v23.0.0/LICENSE diff --git a/tests/testdata/buf.build/protocolbuffers/dart/v23.0.0/eliza/plugin.sum b/tests/testdata/buf.build/protocolbuffers/dart/v23.0.0/eliza/plugin.sum new file mode 100644 index 00000000..2bfe74d5 --- /dev/null +++ b/tests/testdata/buf.build/protocolbuffers/dart/v23.0.0/eliza/plugin.sum @@ -0,0 +1 @@ +h1:EHjoAFC0f9MYDGp5ponHPsHSq+oITr/nJ+W10CQ0jPw= diff --git a/tests/testdata/buf.build/protocolbuffers/dart/v23.0.0/petapis/plugin.sum b/tests/testdata/buf.build/protocolbuffers/dart/v23.0.0/petapis/plugin.sum new file mode 100644 index 00000000..f22755f2 --- /dev/null +++ b/tests/testdata/buf.build/protocolbuffers/dart/v23.0.0/petapis/plugin.sum @@ -0,0 +1 @@ +h1:nMXYfauiozPs3tgQnr1CC/YD1AednnhCB7OOoSLUjGo=