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
{{ message }}
Repository navigation
[rush] Slightly wrong text formatting for script warning box #5682
Hi, I'd like to work on this if it is still relevant.
I checked and i can reproduce the issue on rush version 5.182.0 and pnpm 10.32.1 on Windows, in a fresh rush init repo with one project that depends on rs-module-lexer@2.8.0.
I think the cause is in libraries/rush-lib/src/logic/installManager/WorkspaceInstallManager.ts where pnpm approve-builds is replaced with rush-pnpm --subspace <name> approve-builds the extra characters aren't accounted for in pnpm's padding, so that line runs past the edge of the box.
Proposed fix:
When the replaced text is inside a box row (a line that starts and ends with │), remove trailing spaces before the closing │ to make up for the added length.
If there isn't enough padding, re-wrap the text to the box's original width and add rows as needed.
This is my first time contributing to open source so let me know if there is anything I am missing, thanks!
Activity
kgetz-arista commentedon Jun 30, 2026
Still seeing this in the latest version of Rush:
Kevuhn commentedon Nov 18, 2026
Hi, I'd like to work on this if it is still relevant.
I checked and i can reproduce the issue on
rush version5.182.0 andpnpm10.32.1 on Windows, in a fresh rush init repo with one project that depends onrs-module-lexer@2.8.0.I think the cause is in
libraries/rush-lib/src/logic/installManager/WorkspaceInstallManager.tswherepnpm approve-buildsis replaced withrush-pnpm --subspace <name> approve-buildsthe extra characters aren't accounted for in pnpm's padding, so that line runs past the edge of the box.Proposed fix:
This is my first time contributing to open source so let me know if there is anything I am missing, thanks!