Skip to content

[packages] Prevent reverting published version numbers #117458

@stuartmorgan-g

Description

@stuartmorgan-g

See flutter/packages#2987 (comment) for example context. The tooling shouldn't allow a change of version B to version A<B if version B is published already. It should instead fail with an error message saying that if it's a revert it should instead:

  • revert all the code changes
  • bump the version to B+1
  • consider retracting version B, and if that's going to be done, adding a note to the changelog entry for version B in the B+1 update

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work listc: contributor-productivityTeam-specific productivity, code health, technical debt.p: toolingAffects the flutter_plugin_tools packagepackageflutter/packages repository. See also p: labels.team-ecosystemOwned by Ecosystem teamtriaged-ecosystemTriaged by Ecosystem team

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions