nx icon indicating copy to clipboard operation
nx copied to clipboard

Regression: build fails with `EISDIR` if `outputPath` starts with `../source/`

Open gentoo90 opened this issue 2 years ago • 2 comments

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

  1. cd test-repo
  2. pnpm 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

gentoo90 avatar Oct 31 '23 18:10 gentoo90

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! 🙏

github-actions[bot] avatar Apr 29 '24 00:04 github-actions[bot]

bump

gentoo90 avatar Apr 29 '24 10:04 gentoo90