diff --git a/plugins/protocolbuffers/dart/v21.1.2/.dockerignore b/plugins/protocolbuffers/dart/v21.1.2/.dockerignore new file mode 100644 index 000000000..5d0f124ff --- /dev/null +++ b/plugins/protocolbuffers/dart/v21.1.2/.dockerignore @@ -0,0 +1,2 @@ +* +!Dockerfile diff --git a/plugins/protocolbuffers/dart/v21.1.2/Dockerfile b/plugins/protocolbuffers/dart/v21.1.2/Dockerfile new file mode 100644 index 000000000..7d0be0dda --- /dev/null +++ b/plugins/protocolbuffers/dart/v21.1.2/Dockerfile @@ -0,0 +1,15 @@ +# syntax=docker/dockerfile:1.6 +FROM dart:2.19.6-sdk AS build + +WORKDIR /build +RUN curl -fsSL https://pub.dartlang.org/packages/protoc_plugin/versions/21.1.2.tar.gz --compressed -o protoc_plugin.tar.gz \ + && tar -xvf protoc_plugin.tar.gz \ + && dart pub get \ + && dart compile exe bin/protoc_plugin.dart -o 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/v21.1.2/buf.plugin.yaml b/plugins/protocolbuffers/dart/v21.1.2/buf.plugin.yaml new file mode 100644 index 000000000..9d796ff21 --- /dev/null +++ b/plugins/protocolbuffers/dart/v21.1.2/buf.plugin.yaml @@ -0,0 +1,9 @@ +version: v1 +name: buf.build/protocolbuffers/dart +plugin_version: v21.1.2 +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-v21.1.2/LICENSE diff --git a/tests/testdata/buf.build/protocolbuffers/dart/v21.1.2/eliza/plugin.sum b/tests/testdata/buf.build/protocolbuffers/dart/v21.1.2/eliza/plugin.sum new file mode 100644 index 000000000..ed28af82d --- /dev/null +++ b/tests/testdata/buf.build/protocolbuffers/dart/v21.1.2/eliza/plugin.sum @@ -0,0 +1 @@ +h1:CldRXfthaTx233/KeLljyWMOrItmNABxwWU3d8H9+xM= diff --git a/tests/testdata/buf.build/protocolbuffers/dart/v21.1.2/petapis/plugin.sum b/tests/testdata/buf.build/protocolbuffers/dart/v21.1.2/petapis/plugin.sum new file mode 100644 index 000000000..076e00626 --- /dev/null +++ b/tests/testdata/buf.build/protocolbuffers/dart/v21.1.2/petapis/plugin.sum @@ -0,0 +1 @@ +h1:j0UgqeFkuxLnrP0VMawXHodV1MIfnmE57XHv1H3nfJE=