Skip to content

The flutter update-packages --force-upgrade command fails and it can't find _macros package #147656

Closed

Description

@gspencergoog

Description

If you run flutter update-packages --force-upgrade, it will crash silently before completing, and the pubspec.yaml files it leaves modified will not work in a subsequent call to flutter update-packages because the _macros package is private and only part of the SDK, and not published, yet it gets pulled in as part of an added dependency of the analyzer package, since it depends on the public pre-release version of the macros package.

Activity

  1. added
    toolAffects the "flutter" command-line tool. See also t: labels.
    team-toolOwned by Flutter Tool team
    on May 1, 2024
  2. self-assigned this
    on May 1, 2024
  3. christopherfujino commented on May 1, 2024

    @christopherfujino
    Contributor

    FYI there's a tracking issue for the failing silently. If you run flutter update-packages --force-upgrade you should see pub solve errors.

  4. added a commit that references this issue on May 2, 2024
    2e78ed0
  5. github-actions commented on May 16, 2024

    @github-actions

    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.

  6. locked as resolved and limited conversation to collaborators on May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

team-toolOwned by Flutter Tool teamtoolAffects 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