You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run yarn run yarn-audit-fix --force --audit-level high, and pug needs to be upgraded from major semver 2 to 3, I get this message from yarn-audit-fix:
-- and the entry in package.json remains ^2.0.4 when it needs to be ^3.0.1. Further yarn-audit-fix runs flag the same error, which causes e.g. Husky scripts to block pushes. We found that apparently, the version in the yarn.lock file is upgraded though.
I actually had the same issue as @nottoseethesun but then I upgraded my yarn to 3.2.1.
Now running yarn-audit-fix --force --audit-level high upgrades the major semver in yarn.lock, but that new semver not reflected in the package.json file.
My package.json has "pug": "^2.0.4", which the --force flag successfully upgraded to 3.0.1 in yarn.lock. However, package.json still shows the same "pug": "^2.0.4".
This seems pretty confusing to me because I would've expected the --force option to have updated my package.json to reflect the 3.0.1 major semver update.
Leaving the package.json unchanged can mislead other developers working on the project into thinking the package is still on 2.x.x when it is actually on 3.x.x. The major semver update would likely have breaking changes in API that would be confusing to pinpoint if package.json still points to the previous major semver.
When I run
yarn run yarn-audit-fix --force --audit-level high
, andpug
needs to be upgraded from major semver2
to3
, I get this message fromyarn-audit-fix
:-- and the entry in
package.json
remains^2.0.4
when it needs to be^3.0.1
. Furtheryarn-audit-fix
runs flag the same error, which causes e.g. Husky scripts to block pushes. We found that apparently, the version in theyarn.lock
file is upgraded though.Running
yarn-audit-version
9.3.2
.The text was updated successfully, but these errors were encountered: