fix: trim msvcrt #9
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
fix: trim MSVCRT caught as output of
pe-parserReason
Without trimming the output, the
msvcrtvariable always contains trailing new lines (due Lua's print). Thus, linesgh-actions-luarocks/main.js
Line 62 in 7c85eef
gh-actions-luarocks/main.js
Line 65 in 7c85eef
Note
These
MSVCRTconditions were taken from https://github.com/luarocks/luarocks/blob/99c57c8b2464550d6659cce43f84db83b17c4c15/install.bat#L1171-L1175.Reproduction
Through GitHub Actions (https://github.com/luau-project/ci-tests/actions/runs/17896638550), using the workflow at the end, employing several C toolchains (MinGW-w64 provided by MSYS2) that link to the legacy
MSVCRTand the newerUCRTC runtimes, the runs are split in the following manner:use-fixisfalsein the matrix, it uses the action from https://github.com/luarocks/gh-actions-luarocks. It can be seen (https://github.com/luau-project/ci-tests/actions/runs/17896638550/job/50884131006#step:9:29) that the action is unable to hitgh-actions-luarocks/main.js
Line 65 in 7c85eef
msvcrthas the valueMSVCRTuse-fixistruein the matrix, it uses the action from this PR branch. On the other hand, it can be seen (https://github.com/luau-project/ci-tests/actions/runs/17896638550/job/50884131024#step:10:29) works as designed: it assigns MSVCRT asmwhen the value got frompe-parserisMSVCRT.Workflow
Expand to see the reproduction workflow