GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — bug: additionalFiles copies ../ matches outside the build on Windows · Issue #5074 · triggerdotdev/trigger.dev Open DescriptionProvide environment information
Describe the bug
The cause is const pathInsideDestinationDir = relative(cwd, file) .split(posix.sep) .filter((p) => p !== "..") .join(posix.sep); On Windows, Expected: the files land at Reproduction repoNo repo needed. The Node script below runs the same path logic with To reproduceconst { win32, posix } = require("node:path"); const cwd = "C:\\repo\\app"; const file = "C:\\repo\\shared\\a.md"; const dest = "C:\\repo\\app\\.trigger\\tmp\\build-x"; const inside = win32.relative(cwd, file).split(posix.sep).filter((p) => p !== "..").join(posix.sep); console.log(win32.join(dest, inside)); // C:\repo\app\.trigger\tmp\shared\a.md <- outside build-x End to end, on Windows:
A task that reads one of those files at runtime then fails with a missing file. Suggested fixSplit on the platform separator, and keep joining with const pathInsideDestinationDir = relative(cwd, file) .split(sep) .filter((p) => p !== "..") .join(posix.sep); With ActivityMetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |