Skip to content

[flutter_tools] Version calculation wrong if last tag is stable #62994

@christopherfujino

Description

@christopherfujino

For example, this PR is one commit after tag 1.20.0. It should report version 1.20.1-0.0.pre.1, but instead it is looking for the most recent DEV tag (which is 1.20.0-7.0.pre), and thus reports 1.20.0-8.0.pre.5, which is BEFORE 1.20.0, and thus breaks version solving.

The problem is when globbing for the most recent tag, we check specifically for the dev version here. Also, I don't think our parsing logic supports stable tags as an input, so we would have to add support for that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions