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
install: use reg add to avoid setx truncating Windows PATH
INSTALL.bat and UNINSTALL.bat persist the system-wide PATH with
'setx /M', which silently truncates the value it writes to 1024
characters. When installing from a shell with an already long
inherited PATH, such as a Visual Studio Developer Prompt, this drops
the tail of the persisted PATH, which can remove entries required to
even start cmd.exe or powershell.exe in a later session. Use 'reg
add' on the same registry key instead, which has no such limit and
requires the same administrator privilege setx already needed.
Mark these Windows batch scripts, which intentionally carry
carriage-return line endings, with the cr-at-eol whitespace attribute
so the pre-commit hook stops flagging their line endings as trailing
whitespace.
Extend the native-cmd CI job to replace the inherited PATH with a
controlled value past the legacy 1024-character limit before
installing, then check the persisted registry PATH afterward, so a
regression here gets caught automatically. The replacement keeps the
length controlled and safely under the 8191-character command line
length limit of cmd.exe, rather than extending the runner's own
already large inherited PATH and risking hitting that separate limit.
Fixes#654
Assisted-by: Claude:claude-sonnet-5
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
0 commit comments