Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pub broken on Dart 2.17 #385

Closed
jathak opened this issue Mar 17, 2022 · 2 comments
Closed

Pub broken on Dart 2.17 #385

jathak opened this issue Mar 17, 2022 · 2 comments

Comments

@jathak
Copy link

jathak commented Mar 17, 2022

The standalone pub tool is being removed in Dart 2.17, which causes any usage of the Pub class to fail.

References to the standalone pub tool should be replaced with dart pub.

jathak added a commit to sass/dart-sass that referenced this issue Mar 17, 2022
grinder's Pub class is broken in 2.17 (see google/grinder.dart#385), so we need to run the formatter directly.
jathak added a commit to sass/dart-sass that referenced this issue Mar 18, 2022
grinder's Pub class is broken in 2.17 (see google/grinder.dart#385), so we need to run the formatter directly.
yfakariya added a commit to yfakariya/form_companion_presenter that referenced this issue Mar 24, 2022
1. some grinder 0.9 tasks do not work on dart 2.17 or later
    google/grinder.dart#385
2. We should use flutter_test rather than dart test in the first place.
@liudonghua123
Copy link
Contributor

I have the similar issue.

D:\code\dart\app_launcher>dart --version
Dart SDK version: 2.17.0-246.0.dev (dev) (Sun Mar 27 12:20:08 2022 -0700) on "windows_x64"

D:\code\dart\app_launcher>
D:\code\dart\app_launcher>dart tool/grind.dart clean build
grinder running clean test build

clean

test
  D:\apps\dart-sdk-dev\bin\pub.bat run test:test --reporter=expanded
  'D:\apps\dart-sdk-dev\bin\pub.bat' is not recognized as an internal or external command,
  operable program or batch file.

failed with exit code 1
#0      runAsync (package:grinder/src/run.dart:108:9)
<asynchronous suspension>
#1      _RootZone.bindUnaryCallbackGuarded.<anon> (dart:async/zone.dart:1657:12)
<asynchronous suspension>

D:\code\dart\app_launcher>

I found the lib\grinder_sdk.dart need to update, change pub ... to dart pub ....

liudonghua123 added a commit to liudonghua123/grinder.dart that referenced this issue Mar 31, 2022
devoncarew pushed a commit that referenced this issue Apr 4, 2022
@devoncarew
Copy link
Contributor

Fixed by #386.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants