Skip to content

Commit 39d947e

Browse files
Update protocolbuffers/dart (#2046)
1 parent f649291 commit 39d947e

File tree

5 files changed

+28
-0
lines changed

5 files changed

+28
-0
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*
2+
!Dockerfile
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# syntax=docker/dockerfile:1.18
2+
FROM dart:3.9.3-sdk AS build
3+
4+
WORKDIR /build
5+
RUN git clone --depth 1 --branch protoc_plugin-v23.0.0 https://github.com/google/protobuf.dart.git \
6+
&& cd protobuf.dart/protoc_plugin \
7+
&& dart pub get \
8+
&& dart compile exe bin/protoc_plugin.dart -o /build/protoc-gen-dart
9+
10+
FROM scratch
11+
COPY --from=build --link /etc/passwd /etc/passwd
12+
COPY --from=build --link /runtime/ /
13+
COPY --from=build --link /build/protoc-gen-dart .
14+
USER nobody
15+
ENTRYPOINT [ "/protoc-gen-dart" ]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: v1
2+
name: buf.build/protocolbuffers/dart
3+
plugin_version: v23.0.0
4+
source_url: https://github.com/google/protobuf.dart
5+
description: Base types for Dart. Generates message and enum types.
6+
output_languages:
7+
- dart
8+
spdx_license_id: BSD-3-Clause
9+
license_url: https://github.com/google/protobuf.dart/blob/protoc_plugin-v23.0.0/LICENSE
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:EHjoAFC0f9MYDGp5ponHPsHSq+oITr/nJ+W10CQ0jPw=
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
h1:nMXYfauiozPs3tgQnr1CC/YD1AednnhCB7OOoSLUjGo=

0 commit comments

Comments
 (0)