Skip to content

Commit 2e628e6

Browse files
authored
Update generated proto, declare support for latest async/protobuf (dart-archive/bazel_worker#13)
1 parent cbf75d2 commit 2e628e6

File tree

3 files changed

+21
-37
lines changed

3 files changed

+21
-37
lines changed

pkgs/bazel_worker/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 0.1.6
2+
3+
* Update the worker_protocol.pb.dart file with the latest proto generator.
4+
* Add support for package:async 2.x and package:protobuf 6.x.
5+
16
## 0.1.5
27

38
* Change TestStdinAsync.controller to StreamController<List<int>> (instead of

pkgs/bazel_worker/lib/src/worker_protocol.pb.dart

Lines changed: 13 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@
55
///
66
// Generated code. Do not modify.
77
///
8+
// ignore_for_file: non_constant_identifier_names,library_prefixes
89
library blaze.worker_worker_protocol;
910

11+
// ignore: UNUSED_SHOWN_NAME
12+
import 'dart:core' show int, bool, double, String, List, override;
1013
import 'package:protobuf/protobuf.dart';
1114

1215
class Input extends GeneratedMessage {
1316
static final BuilderInfo _i = new BuilderInfo('Input')
14-
..a/*<String>*/(1, 'path', PbFieldType.OS)
15-
..a/*<List<int>>*/(2, 'digest', PbFieldType.OY)
17+
..a<String>(1, 'path', PbFieldType.OS)
18+
..a<List<int>>(2, 'digest', PbFieldType.OY)
1619
..hasRequiredFields = false;
1720

1821
Input() : super();
@@ -35,15 +38,15 @@ class Input extends GeneratedMessage {
3538
}
3639

3740
String get path => $_get(0, 1, '');
38-
void set path(String v) {
41+
set path(String v) {
3942
$_setString(0, 1, v);
4043
}
4144

4245
bool hasPath() => $_has(0, 1);
4346
void clearPath() => clearField(1);
4447

4548
List<int> get digest => $_get(1, 2, null);
46-
void set digest(List<int> v) {
49+
set digest(List<int> v) {
4750
$_setBytes(1, 2, v);
4851
}
4952

@@ -55,8 +58,8 @@ class _ReadonlyInput extends Input with ReadonlyMessageMixin {}
5558

5659
class WorkRequest extends GeneratedMessage {
5760
static final BuilderInfo _i = new BuilderInfo('WorkRequest')
58-
..p/*<String>*/(1, 'arguments', PbFieldType.PS)
59-
..pp/*<Input>*/(2, 'inputs', PbFieldType.PM, Input.$checkItem, Input.create)
61+
..p<String>(1, 'arguments', PbFieldType.PS)
62+
..pp<Input>(2, 'inputs', PbFieldType.PM, Input.$checkItem, Input.create)
6063
..hasRequiredFields = false;
6164

6265
WorkRequest() : super();
@@ -89,8 +92,8 @@ class _ReadonlyWorkRequest extends WorkRequest with ReadonlyMessageMixin {}
8992

9093
class WorkResponse extends GeneratedMessage {
9194
static final BuilderInfo _i = new BuilderInfo('WorkResponse')
92-
..a/*<int>*/(1, 'exitCode', PbFieldType.O3)
93-
..a/*<String>*/(2, 'output', PbFieldType.OS)
95+
..a<int>(1, 'exitCode', PbFieldType.O3)
96+
..a<String>(2, 'output', PbFieldType.OS)
9497
..hasRequiredFields = false;
9598

9699
WorkResponse() : super();
@@ -116,15 +119,15 @@ class WorkResponse extends GeneratedMessage {
116119
}
117120

118121
int get exitCode => $_get(0, 1, 0);
119-
void set exitCode(int v) {
122+
set exitCode(int v) {
120123
$_setUnsignedInt32(0, 1, v);
121124
}
122125

123126
bool hasExitCode() => $_has(0, 1);
124127
void clearExitCode() => clearField(1);
125128

126129
String get output => $_get(1, 2, '');
127-
void set output(String v) {
130+
set output(String v) {
128131
$_setString(1, 2, v);
129132
}
130133

@@ -133,27 +136,3 @@ class WorkResponse extends GeneratedMessage {
133136
}
134137

135138
class _ReadonlyWorkResponse extends WorkResponse with ReadonlyMessageMixin {}
136-
137-
const Input$json = const {
138-
'1': 'Input',
139-
'2': const [
140-
const {'1': 'path', '3': 1, '4': 1, '5': 9},
141-
const {'1': 'digest', '3': 2, '4': 1, '5': 12},
142-
],
143-
};
144-
145-
const WorkRequest$json = const {
146-
'1': 'WorkRequest',
147-
'2': const [
148-
const {'1': 'arguments', '3': 1, '4': 3, '5': 9},
149-
const {'1': 'inputs', '3': 2, '4': 3, '5': 11, '6': '.blaze.worker.Input'},
150-
],
151-
};
152-
153-
const WorkResponse$json = const {
154-
'1': 'WorkResponse',
155-
'2': const [
156-
const {'1': 'exit_code', '3': 1, '4': 1, '5': 5},
157-
const {'1': 'output', '3': 2, '4': 1, '5': 9},
158-
],
159-
};

pkgs/bazel_worker/pubspec.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: bazel_worker
2-
version: 0.1.5
2+
version: 0.1.6
33
description: Tools for creating a bazel persistent worker.
44
author: Dart Team <[email protected]>
55
homepage: https://github.com/dart-lang/bazel_worker
@@ -8,8 +8,8 @@ environment:
88
sdk: '>=1.22.1 <2.0.0'
99

1010
dependencies:
11-
async: ^1.9.0
12-
protobuf: ^0.5.0
11+
async: ">1.9.0 <3.0.0"
12+
protobuf: ">=0.5.0 <0.7.0"
1313

1414
dev_dependencies:
1515
test: ^0.12.0

0 commit comments

Comments
 (0)