Skip to content

Don't require .packages file for flutter packages command - #12258

Merged
tvolkert merged 1 commit into
flutter:masterfrom
tvolkert:fix
Sep 26, 2017
Merged

tvolkert merged 1 commit into
flutter:masterfrom
tvolkert:fix

Conversation

@tvolkert

Copy link
Copy Markdown
Contributor

(it's the command that populates the .packages file)

(it's the command that populates the .packages file)
@tvolkert

Copy link
Copy Markdown
Contributor Author

Tests to follow, but sending this out to unblock broken builds on other repos.

@tvolkert
tvolkert requested a review from mit-mit September 26, 2017 15:35

@yjbanov yjbanov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tvolkert
tvolkert merged commit bb0a724 into flutter:master Sep 26, 2017
@tvolkert
tvolkert deleted the fix branch September 26, 2017 16:12
@mit-mit

mit-mit commented Sep 26, 2017

Copy link
Copy Markdown
Member

Thanks!


// Validate the current package map only if we will not be running "pub get" later.
if (!(_usesPubOption && argResults['pub'])) {
if (parent?.name != 'packages' && !(_usesPubOption && argResults['pub'])) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test?

@tvolkert

Copy link
Copy Markdown
Contributor Author

test?

See comment above. Writing tests as we speak, but I wanted to unbreak the build first.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants