Skip to content

Conversation

@jason-simmons
Copy link
Member

Offline pub assumes that the pub cache contains all needed packages. Running
"flutter create" in online mode first will ensure that the pub cache is populated.

Fixes #89759

…ne mode

Offline pub assumes that the pub cache contains all needed packages.  Running
"flutter create" in online mode first will ensure that the pub cache is populated.

Fixes flutter#89759
@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Sep 9, 2021
@google-cla google-cla bot added the cla: yes label Sep 9, 2021
@christopherfujino
Copy link
Contributor

why are we failing to find the dart binary?


testUsingContext(
'invokes pub offline when requested',
'invokes pub in online and offline modes',
Copy link
Member

Choose a reason for hiding this comment

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

If this is only testing that the --offline flag is or isn't plumbed through correctly, can it use a fake filesystem and process runner instead? We can land this to get the tree green etc. but if this is just testing flag plumbing there's no reason to invoke the real pub, I think?

Copy link
Contributor

Choose a reason for hiding this comment

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

that makes sense to me

Copy link
Contributor

@christopherfujino christopherfujino left a comment

Choose a reason for hiding this comment

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

LGTM. I still don't understand why we get the dart bin not found exception, but this looks like it will green the tree.

@jason-simmons jason-simmons merged commit a14be9d into flutter:master Sep 9, 2021
jason-simmons added a commit to jason-simmons/flutter that referenced this pull request Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

create_test failing on pub failures

3 participants