nx
nx copied to clipboard
Regression: build fails with `EISDIR` if `outputPath` starts with `../source/`
Current Behavior
If outputPath of the project starts with ../source/ then build fails:
$ pnpm build
> @test-repo/[email protected] build /home/user/projects/tmp/NxCacheErrorRepro/test-repo
> nx build test-repo
> nx run test-repo:build:production
✔ Browser application bundle generation complete.
✔ Copying assets complete.
✔ Index html generation complete.
Initial Chunk Files | Names | Raw Size | Estimated Transfer Size
main.1bbff18d881dbd28.js | main | 111.97 kB | 32.26 kB
polyfills.17fcc834a0cb8fcf.js | polyfills | 33.03 kB | 10.63 kB
runtime.4a236d66b86ed93e.js | runtime | 896 bytes | 510 bytes
styles.ef46db3751d8e999.css | styles | 0 bytes | -
| Initial Total | 145.87 kB | 43.39 kB
Build at: 2023-10-31T17:45:50.112Z - Hash: 976dace513b0324e - Time: 1613ms
———————————————————————————————————————————————————————————————————————————————————————
> NX Ran target build for project test-repo (7s)
✖ 0/0 failed
✔ 0/0 succeeded [0 read from cache]
> NX EISDIR: illegal operation on a directory, open '/home/user/projects/tmp/NxCacheErrorRepro/test-repo/.nx/cache/13495886819029245579/source'
Pass --verbose to see the stacktrace.
ELIFECYCLE Command failed with exit code 1.
Expected Behavior
Build finishes successfully
GitHub Repo
https://github.com/gentoo90/NxCacheErrorRepro
Steps to Reproduce
cd test-repopnpm build
Nx Report
> NX Report complete - copy this into the issue template
Node : 20.5.1
OS : linux-x64
pnpm : 8.9.2
nx : 17.0.2
@nx/js : 17.0.2
@nx/jest : 17.0.2
@nx/linter : 17.0.2
@nx/eslint : 17.0.2
@nx/workspace : 17.0.2
@nx/angular : 17.0.2
@nx/cypress : 17.0.2
@nx/devkit : 17.0.2
@nx/eslint-plugin : 17.0.2
@nrwl/tao : 17.0.2
@nx/web : 17.0.2
@nx/webpack : 17.0.2
typescript : 5.1.6
Failure Logs
No response
Package Manager Version
No response
Operating System
- [ ] macOS
- [X] Linux
- [X] Windows
- [ ] Other (Please specify)
Additional Information
No response
This issue has been automatically marked as stale because it hasn't had any recent activity. It will be closed in 14 days if no further activity occurs. If we missed this issue please reply to keep it active. Thanks for being a part of the Nx community! 🙏
bump