Skip to content

Users in China do not get automatic updates for DevTools #2503

Closed

Description

@DanTup

See #2486 and #2502. If the Pub website is blocked, the API check for versions will also fail, and we'll never update.

Some possible options:

  • Call the API on pub.flutter-io.cn (if supported) if the first request fails
  • Always try to update DevTools in the background at startup (note: this might mess with people using locally-activated versions)
  • Periodically prompt the user to update ("Unable to check for updates, install latest version?" or similar)

Activity

  1. added
    is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.
    in commandsRelates to commands (usually invoked from the command Palette)
    on May 28, 2020
  2. added this to the v3.12.0 milestone on May 28, 2020
  3. beilly commented on May 28, 2020

    @beilly

    @DanTup Give a option setting API on pub.flutter-io.cn, and default pub.dev. Otherwise, always update manually. If you have any help with the test, please contact me.

  4. DanTup commented on Jun 16, 2020

    @DanTup
    MemberAuthor

    Looks like we don't need a setting - we can just read PUB_HOSTED_URL which should already be set by users in China for Flutter/pub to work correctly (see https://flutter.dev/community/china) :-)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    in commandsRelates to commands (usually invoked from the command Palette)is enhancementAn enhancement or improvement that should be listed in release notes but is not a bug fix.

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions