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 build is deprecated since Dart 2 #327

Open
dvorapa opened this issue Oct 4, 2018 · 2 comments
Open

pub build is deprecated since Dart 2 #327

dvorapa opened this issue Oct 4, 2018 · 2 comments

Comments

@dvorapa
Copy link

dvorapa commented Oct 4, 2018

And therefore Pub.build() does not work as expected. Is there some alternative?

Pub.build();

@devoncarew
Copy link
Contributor

Ah, we should deprecate (or remove) that call.

Generally, people should be using build_runner to build now, or calling out to webdev build.

@dvorapa
Copy link
Author

dvorapa commented Oct 9, 2018

Probably this line:

.runAsync(sdkBin('pub'), arguments: args, runOptions: runOptions)

should call webdev (build) instead of pub (build) at least. But the Pub class should be also split into Pub and Webdev too.

@devoncarew devoncarew added this to the project bootstrap milestone Jul 18, 2019
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

2 participants