Dart pubspec updater doesn't work as expected for prerelease. #2400
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Overview
In case of defining a version with prerelease version and without build number in pubspec.yaml, dart pubspec updater updates the version with build number.
Expected
The version should be updated prerelease version and build number.
Actual
Dart pubspec updater recognizes prerelease version as build number.
https://github.com/googleapis/release-please/blob/64ffba96734bf158818121c067870077d903611b/src/updaters/dart/pubspec-yaml.ts#L29C39-L29C66
You can confirm this behavior from this PR.
Environment details
Steps to reproduce
version: 1.0.0-dev01
) on pubspec.yaml.The text was updated successfully, but these errors were encountered: