Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/jobs.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export function jobEnvironment(
const value = source.CMAKE_PREFIX_PATH;
const parts =
typeof value === "string" && value.length <= 4096
? value.split(";").filter((part) => part.length > 0)
? value.split(";")
: [];
if (
parts.length > 0 &&
Expand Down
3 changes: 3 additions & 0 deletions tests/windows-job-environment.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ test("CMAKE_PREFIX_PATH is inherited only by approved cmake commands and only wh
"C:\\Qt" + String.fromCharCode(10) + "x",
"C:\\" + "a".repeat(5000),
";;",
";C:\\Qt",
"C:\\Qt;",
"C:\\Qt;;D:\\libs",
]) {
assert.equal(
Object.hasOwn(
Expand Down