Skip to content

Commit 931267e

Browse files
sigurdmparlough
andauthored
[infra] Replace pub run with dart run (dart-lang#3000)
Co-authored-by: Parker Lougheed <[email protected]>
1 parent ac1144e commit 931267e

17 files changed

Lines changed: 29 additions & 29 deletions

File tree

‎.github/workflows/ffigen.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,4 +197,4 @@ jobs:
197197
- name: Build test dylib and bindings
198198
run: dart --enable-asserts test/setup.dart
199199
- name: Run VM tests
200-
run: flutter pub run test test_flutter/
200+
run: dart test test_flutter/

‎pkgs/ffigen/test_flutter/flutter_template_tests/flutter_plugin_ffi_test.dart‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ void main() {
5151
target: bindingsGeneratedCopyUri,
5252
);
5353
await runProcess(
54-
executable: 'flutter',
55-
arguments: ['pub', 'run', 'ffigen', '--config', 'ffigen.yaml'],
54+
executable: 'dart',
55+
arguments: ['run', 'ffigen', '--config', 'ffigen.yaml'],
5656
workingDirectory: projectDirUri,
5757
);
5858

‎pkgs/hooks/example/build/download_asset/ffigen.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Run with `flutter pub run ffigen --config ffigen.yaml`.
1+
# Run with `dart run ffigen --config ffigen.yaml`.
22
name: NativeAddBindings
33
description: |
44
Bindings for `src/native_add.h`.
55
6-
Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
6+
Regenerate bindings with `dart run ffigen --config ffigen.yaml`.
77
output: 'lib/native_add.dart'
88
headers:
99
entry-points:

‎pkgs/hooks/example/build/native_add_library/ffigen.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Run with `flutter pub run ffigen --config ffigen.yaml`.
1+
# Run with `dart run ffigen --config ffigen.yaml`.
22
name: NativeAddBindings
33
description: |
44
Bindings for `src/native_add_library.h`.
55
6-
Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
6+
Regenerate bindings with `dart run ffigen --config ffigen.yaml`.
77
output: 'lib/native_add_library.dart'
88
headers:
99
entry-points:

‎pkgs/hooks/example/build/native_dynamic_linking/ffigen.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Run with `flutter pub run ffigen --config ffigen.yaml`.
1+
# Run with `dart run ffigen --config ffigen.yaml`.
22
name: AddBindings
33
description: |
44
Bindings for `src/add.h`.
55
6-
Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
6+
Regenerate bindings with `dart run ffigen --config ffigen.yaml`.
77
output: 'lib/add.dart'
88
headers:
99
entry-points:

‎pkgs/hooks/example/build/use_dart_api/ffigen.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Run with `flutter pub run ffigen --config ffigen.yaml`.
1+
# Run with `dart run ffigen --config ffigen.yaml`.
22
name: NativeAddBindings
33
description: |
44
Bindings for `src/use_dart_api.h`.
55
6-
Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
6+
Regenerate bindings with `dart run ffigen --config ffigen.yaml`.
77
output: "lib/src/use_dart_api_bindings_generated.dart"
88
headers:
99
entry-points:

‎pkgs/hooks_runner/test_data/native_add/ffigen.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Run with `flutter pub run ffigen --config ffigen.yaml`.
1+
# Run with `dart run ffigen --config ffigen.yaml`.
22
name: NativeAddBindings
33
description: |
44
Bindings for `src/native_add.h`.
55
6-
Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
6+
Regenerate bindings with `dart run ffigen --config ffigen.yaml`.
77
output: "lib/src/native_add_bindings_generated.dart"
88
headers:
99
entry-points:

‎pkgs/hooks_runner/test_data/native_add_version_skew/ffigen.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Run with `flutter pub run ffigen --config ffigen.yaml`.
1+
# Run with `dart run ffigen --config ffigen.yaml`.
22
name: NativeAddBindings
33
description: |
44
Bindings for `src/native_add.h`.
55
6-
Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
6+
Regenerate bindings with `dart run ffigen --config ffigen.yaml`.
77
output: 'lib/src/native_add_bindings_generated.dart'
88
headers:
99
entry-points:

‎pkgs/hooks_runner/test_data/native_dynamic_linking/ffigen.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Run with `flutter pub run ffigen --config ffigen.yaml`.
1+
# Run with `dart run ffigen --config ffigen.yaml`.
22
name: AddBindings
33
description: |
44
Bindings for `src/add.h`.
55
6-
Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
6+
Regenerate bindings with `dart run ffigen --config ffigen.yaml`.
77
output: 'lib/add.dart'
88
headers:
99
entry-points:

‎pkgs/hooks_runner/test_data/native_subtract/ffigen.yaml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# Run with `flutter pub run ffigen --config ffigen.yaml`.
1+
# Run with `dart run ffigen --config ffigen.yaml`.
22
name: NativeAddBindings
33
description: |
44
Bindings for `src/native_subtract.h`.
55
6-
Regenerate bindings with `flutter pub run ffigen --config ffigen.yaml`.
6+
Regenerate bindings with `dart run ffigen --config ffigen.yaml`.
77
output: "lib/src/native_subtract_bindings_generated.dart"
88
headers:
99
entry-points:

0 commit comments

Comments
 (0)