Skip to content

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

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

Don't require .packages file for flutter packages command#12258
tvolkert merged 1 commit intoflutter:masterfrom
tvolkert:fix

Conversation

@tvolkert
Copy link
Contributor

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

(it's the command that populates the .packages file)
@tvolkert
Copy link
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
Copy link
Contributor

@yjbanov yjbanov left a comment

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
Copy link
Member

mit-mit commented Sep 26, 2017

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
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
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