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

Fetch tags for version command #52212

Merged
merged 1 commit into from Mar 14, 2020
Merged

Conversation

dnfield
Copy link
Contributor

@dnfield dnfield commented Mar 8, 2020

Description

Fetch upstream tags as part of the version command.

Related Issues

Fixes reported issues in #14230
See also #52062

Tests

I added the following tests:

Assert that flutter version calls the fetchAndUpdateTags on the global flutterVersion.

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]). This will ensure a smooth and quick review process.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I signed the CLA.
  • I read and followed the Flutter Style Guide, including Features we expect every widget to implement.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I updated/added relevant documentation (doc comments with ///).
  • All existing and new tests are passing.
  • The analyzer (flutter analyze --flutter-repo) does not report any problems on my PR.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Did any tests fail when you ran them? Please read Handling breaking changes.

  • No, no existing tests failed, so this is not a breaking change.

@fluttergithubbot fluttergithubbot added the tool Affects the "flutter" command-line tool. See also t: labels. label Mar 8, 2020
Copy link
Member

@jonahwilliams jonahwilliams left a comment

Choose a reason for hiding this comment

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

See L70:

We're recommending that users not invoke the version command, and personally I'd like to remove it if possible in a future release

Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

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

LGTM.
@jonahwilliams this command probably isn't going away any time soon...

@jonahwilliams
Copy link
Member

FWIW It isn't on part of the main upgrade/downgrade workflow and we have no obligation to maintain it otherwise.

@dnfield
Copy link
Contributor Author

dnfield commented Mar 13, 2020

This should at least be an incremental improvement that's fairly easy to apply. The command definitely still has issues and needs more work or to be removed (and probably clearly deprecated first).

I think we could probably deprecate it as long as we had some good story about what to use instead.

@lock
Copy link

lock bot commented Apr 2, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@lock lock bot locked and limited conversation to collaborators Apr 2, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.

None yet

5 participants