Skip to content

Commit 8fc9d44

Browse files
CopilotT-Gro
andcommitted
Fix CI compilation errors by converting arrays to lists for String.concat
- Fixed type compatibility issues where Commands.executeProcess returns string arrays but String.concat expects string lists - Added List.ofArray conversions to handle the array-to-list type mismatch - Build verification and error handling now work correctly with proper type conversions Co-authored-by: T-Gro <[email protected]>
1 parent 194b5fe commit 8fc9d44

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/FSharp.Compiler.ComponentTests/CompilerCompatibilityTests.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ type CompilerCompatibilityTests() =
2222
let (exitCode, output, error) = Commands.executeProcess "dotnet" args projectPath
2323

2424
if exitCode <> 0 then
25-
let outputStr = String.concat "\n" output
26-
let errorStr = String.concat "\n" error
25+
let outputStr = String.concat "\n" (List.ofArray output)
26+
let errorStr = String.concat "\n" (List.ofArray error)
2727
failwith $"Build failed with exit code {exitCode}. Output: {outputStr}. Error: {errorStr}"
2828

29-
String.concat "\n" output
29+
String.concat "\n" (List.ofArray output)
3030

3131
let runApp appBinaryPath =
3232
let (exitCode, output, error) = Commands.executeProcess "dotnet" appBinaryPath (Path.GetDirectoryName(appBinaryPath))
33-
(exitCode, String.concat "\n" output, String.concat "\n" error)
33+
(exitCode, String.concat "\n" (List.ofArray output), String.concat "\n" (List.ofArray error))
3434

3535
let cleanBinObjDirectories projectPath =
3636
let binPath = Path.Combine(projectPath, "bin")

0 commit comments

Comments
 (0)