Skip to content

Commit b46c486

Browse files
authored
Pub workspace (#806)
1 parent 0f86517 commit b46c486

File tree

8 files changed

+42
-37
lines changed

8 files changed

+42
-37
lines changed

.github/workflows/dart.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -29,15 +29,6 @@ jobs:
2929
- name: Check formatting (using dev dartfmt release)
3030
if: ${{ matrix.sdk == 'stable' }}
3131
run: dart format --output=none --set-exit-if-changed .
32-
- name: Analyze code (introp and examples)
33-
run: |
34-
for example in interop example/*/; do
35-
pushd $example
36-
echo [Getting dependencies in $example]
37-
dart pub get
38-
popd
39-
done
40-
shell: bash
4132
- name: Analyze code
4233
run: dart analyze --fatal-infos .
4334
- name: Check that grpc-web sample builds with DDC

example/googleapis/pubspec.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ name: googleapis
22
description: Dart gRPC client sample for Google APIs
33
publish_to: none
44

5+
resolution: workspace
6+
57
environment:
68
sdk: ^3.8.0
79

810
dependencies:
9-
async: ^2.13.0
10-
fixnum: ^1.1.1
11-
grpc:
12-
path: ../../
13-
protobuf: ^4.1.0
11+
async: any
12+
fixnum: any
13+
grpc: any
14+
protobuf: any
1415

1516
dev_dependencies:
1617
lints: ^6.0.0

example/grpc-web/pubspec.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ name: grpc_web
22
description: Dart gRPC-Web sample client
33
publish_to: none
44

5+
resolution: workspace
6+
57
environment:
68
sdk: ^3.8.0
79

810
dependencies:
9-
grpc:
10-
path: ../../
11-
protobuf: ^4.1.0
12-
web: ^1.1.1
11+
grpc: any
12+
protobuf: any
13+
web: any
1314

1415
dev_dependencies:
1516
build_runner: ^2.4.15

example/helloworld/pubspec.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ name: helloworld
22
description: Dart gRPC sample client and server.
33
publish_to: none
44

5+
resolution: workspace
6+
57
environment:
68
sdk: ^3.8.0
79

810
dependencies:
9-
async: ^2.13.0
10-
grpc:
11-
path: ../../
12-
protobuf: ^4.1.0
11+
async: any
12+
grpc: any
13+
protobuf: any
1314

1415
dev_dependencies:
1516
lints: ^6.0.0

example/metadata/pubspec.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,15 @@ name: metadata
22
description: Dart gRPC sample client and server.
33
publish_to: none
44

5+
resolution: workspace
6+
57
environment:
68
sdk: ^3.8.0
79

810
dependencies:
9-
async: ^2.13.0
10-
grpc:
11-
path: ../../
12-
protobuf: ^4.1.0
11+
async: any
12+
grpc: any
13+
protobuf: any
1314

1415
dev_dependencies:
1516
lints: ^6.0.0

example/route_guide/pubspec.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,16 @@ name: route_guide
22
description: Dart gRPC sample client and server.
33
publish_to: none
44

5+
resolution: workspace
6+
57
environment:
68
sdk: ^3.8.0
79

810
dependencies:
9-
async: ^2.13.0
10-
collection: ^1.19.1
11-
grpc:
12-
path: ../../
13-
protobuf: ^4.1.0
11+
async: any
12+
collection: any
13+
grpc: any
14+
protobuf: any
1415

1516
dev_dependencies:
1617
lints: ^6.0.0

interop/pubspec.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,17 @@ name: interop
22
description: Dart gRPC interoperability test suite.
33
publish_to: none
44

5+
resolution: workspace
6+
57
environment:
68
sdk: ^3.8.0
79

810
dependencies:
9-
args: ^2.7.0
10-
async: ^2.13.0
11-
collection: ^1.19.1
12-
grpc:
13-
path: ../
14-
protobuf: ^4.1.0
11+
args: any
12+
async: any
13+
collection: any
14+
grpc: any
15+
protobuf: any
1516

1617
dev_dependencies:
1718
lints: ^6.0.0

pubspec.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@ version: 4.2.0
33
description: Dart implementation of gRPC, a high performance, open-source universal RPC framework.
44
repository: https://github.com/grpc/grpc-dart
55

6+
workspace:
7+
- example/googleapis
8+
- example/grpc-web
9+
- example/helloworld
10+
- example/metadata
11+
- example/route_guide
12+
- interop
13+
614
topics:
715
- grpc
816
- protocols

0 commit comments

Comments
 (0)