Skip to content

We seem to be using the previous version of Dart during the flutter upgrade process #5796

@sethladd

Description

@sethladd

I just ran flutter upgrade, and it failed when running pub. We don't seem (??) to be using the version of the Dart SDK that we just downloaded as part of the upgrade process.

Workaround: run flutter upgrade twice. On the second run, it does pick up the version of the Dart SDK that we downloaded from the previous upgrade.

Log output: (notice the version of dart that is downloaded, and the version of dart that is reported after the download)

~/Code/flutter/examples/flutter_gallery[master] $ flutter upgrade
Upgrading Flutter from /Users/sethladd/Code/flutter...
From github.com:flutter/flutter
   99a9bbb..cc3df14  master     -> origin/master
Updating 99a9bbb..cc3df14
 46 files changed, 697 insertions(+), 353 deletions(-)

Upgrading engine...
Downloading Dart SDK 1.20.0-dev.1.0...

##                                                                         3.6%
######                                                                     8.8%
##########                                                                13.9%
#############                                                             19.2%
#################                                                         24.4%
#####################                                                     29.6%
#########################                                                 34.8%
###########################                                               38.4%
##################################                                        48.2%
######################################                                    53.5%
##########################################                                58.3%
################################################                          67.5%
####################################################                      72.7%
########################################################                  78.0%
###########################################################               82.9%
################################################################          89.1%
###################################################################       94.4%
#######################################################################   99.6%
######################################################################## 100.0%
Building flutter tool...
Already up-to-date.

Flutter • channel master • [email protected]:flutter/flutter.git
Framework • revision cc3df14268 (25 minutes ago) • 2016-09-09 13:19:03
Engine • revision d3ba01d8a4
Tools • Dart 1.19.0-dev.5.0

Running 'pub upgrade' in flutter_gallery...              
Could not find an option named "package-symlinks".

Usage: pub <command> [arguments]

Global options:
-h, --help             Print this usage information.
    --version          Print pub version.
    --[no-]trace       Print debugging information when an error occurs.
    --verbosity        Control output verbosity.

          [all]        Show all output including internal tracing messages.
          [error]      Show only errors.
          [io]         Also show IO operations.
          [normal]     Show errors, warnings, and user messages.
          [solver]     Show steps during version resolution.
          [warning]    Show only errors and warnings.

-v, --verbose          Shortcut for "--verbosity=all".

Available commands:
  build       Apply transformers to build a package.
  cache       Work with the system cache.
  deps        Print package dependencies.
  downgrade   Downgrade the current package's dependencies to oldest versions.
  get         Get the current package's dependencies.
  global      Work with global packages.
  help        Display help information for pub.
  publish     Publish the current package to pub.dartlang.org.
  run         Run an executable from a package.
  serve       Run a local web development server.
  upgrade     Upgrade the current package's dependencies to latest versions.
  uploader    Manage uploaders for a package on pub.dartlang.org.
  version     Print pub version.

Run "pub help <command>" for more information about a command.
See http://dartlang.org/tools/pub for detailed documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions