Skip to content

Conversation

@jonahwilliams
Copy link
Contributor

@jonahwilliams jonahwilliams commented Apr 22, 2021

This fixes the existing analysis test. Fixes #80909

When printing the transitive closure, ensure that all dependencies - even transitive dependencies - are pinned in the synthetic pubspec. This prevents us from accidentally grabbing new versions of transitive deps without a roll into the flutter tool.

This was only a problem with --transitive-closure, for update-packages --force-upgrade it is expected that we leave transitive deps unpinned to reduce the constraints for a new version solve

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat.

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@flutter-dashboard flutter-dashboard bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Apr 22, 2021
@google-cla google-cla bot added the cla: yes label Apr 22, 2021
result.writeln('name: flutter_update_packages');
result.writeln('environment:');
result.writeln(" sdk: '>=2.10.0 <3.0.0'");
result.writeln(" sdk: '>=2.12.0 <3.0.0'");
Copy link
Contributor Author

Choose a reason for hiding this comment

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

while I'm at it...

Copy link
Contributor

@gspencergoog gspencergoog left a comment

Choose a reason for hiding this comment

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

32384589-a60f0e74-c078-11e7-9bc1-e5b5287aea9d

@Hixie
Copy link
Contributor

Hixie commented Apr 22, 2021

test-exempt: clearly this is already tested since the tests failed ;-)

@jonahwilliams
Copy link
Contributor Author

Actually, I did this wrong - but the tests are still failing thankfully :D

@jonahwilliams
Copy link
Contributor Author

Actually rewrote the logic a bit so for --transitive-closure we only look at the deps of the current packages instead of the generated package.

Copy link
Contributor

@gspencergoog gspencergoog left a comment

Choose a reason for hiding this comment

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

LGTM still, with the changes.

@jonahwilliams jonahwilliams merged commit c2aa193 into flutter:master Apr 22, 2021
@jonahwilliams jonahwilliams deleted the fix_transitive_closure_bug branch April 22, 2021 04:40
jonahwilliams pushed a commit that referenced this pull request Apr 22, 2021
jonahwilliams pushed a commit that referenced this pull request Apr 22, 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.

Analyze is failing, Warning: transitive closure contained non-allowlisted packages: [frontend_server_client]

3 participants