Skip to content

fix(yarn): stop Yarn Berry hijacking the bump env vars - #151

Open
toufali wants to merge 1 commit into
mainfrom
fix/yarn-bump-env-collision
Open

fix(yarn): stop Yarn Berry hijacking the bump env vars#151
toufali wants to merge 1 commit into
mainfrom
fix/yarn-bump-env-collision

Conversation

@toufali

@toufali toufali commented Sep 4, 2026

Copy link
Copy Markdown
Member

Bug

BLEnder's yarn-bump remediation has been silently failing on every yarn (Berry) repo, so it never opened a bump PR. Yarn Berry reads any YARN_<NAME> environment variable as a config setting; the bump step passed the target via YARN_PACKAGE/YARN_VERSION, so every yarn call in yarn-fix.sh aborted with:

Usage Error: Unrecognized or legacy configuration settings found: package

yarn up never ran → resolution fallback found no change → "nothing to open". No error surfaced anywhere except the run log.

Evidence

mozilla/fxa alert #913 (@simplewebauthn/server), run 33902016880: verdict not affected / bump_pr, then the Usage Error above and "no changes produced … nothing to open."

Fix

Rename the env vars to BUMP_PACKAGE/BUMP_VERSION (off the YARN_ prefix) in the workflow step and yarn-fix.sh, with a note so nobody reintroduces a YARN_* name.

Closes #152

The yarn bump step passed the target package via YARN_PACKAGE/YARN_VERSION.
Yarn Berry reads any YARN_<NAME> env var as a config setting, so every yarn
call in yarn-fix.sh failed with 'Unrecognized configuration settings: package'
— 'yarn up' never ran and no bump PR was ever opened (silent, on every yarn
remediation). Rename them to BUMP_PACKAGE/BUMP_VERSION.
@toufali
toufali force-pushed the fix/yarn-bump-env-collision branch from e49da83 to a25fb56 Compare September 4, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

yarn-bump remediation silently fails on Yarn Berry (YARN_* env collision)

1 participant