I noticed this issue in our release script while doing a few backports for 8.16. It likely started when we upgraded from Yarn Classic to Yarn Berry, but I couldn't find a recent bug report in the yarn repo about it.
QA
In CLI, run yarn version v97.3.0-backport.0 - package.json should update correctly as expected:
Now run yarn version v97.3.0-backport.1 - notice that package.jsondoes not update as expected:
Rerun yarn version v97.3.0-backport.1 again and confirm that the second time, package.json is correct for whatever reason 🤷
Summary
I noticed this issue in our release script while doing a few backports for 8.16. It likely started when we upgraded from Yarn Classic to Yarn Berry, but I couldn't find a recent bug report in the yarn repo about it.
QA
yarn version v97.3.0-backport.0
-package.json
should update correctly as expected:yarn version v97.3.0-backport.1
- notice thatpackage.json
does not update as expected:yarn version v97.3.0-backport.1
again and confirm that the second time, package.json is correct for whatever reason 🤷General checklist
N/A, internal/dev only