-
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 protocolbuffers/dart v21.1.2 (#856)
- Loading branch information
1 parent
b2beafe
commit 20622b5
Showing
5 changed files
with
28 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.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" ] |
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 @@ | ||
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 |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/protocolbuffers/dart/v21.1.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:CldRXfthaTx233/KeLljyWMOrItmNABxwWU3d8H9+xM= |
1 change: 1 addition & 0 deletions
1
tests/testdata/buf.build/protocolbuffers/dart/v21.1.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:j0UgqeFkuxLnrP0VMawXHodV1MIfnmE57XHv1H3nfJE= |