Project graph is broken in 14.8.2 on environments with older git version
See original GitHub issueCurrent Behavior
Project graph is not computed correctly in node:16.17.0 containers, this is caused by the introduction of the --recurse-submodules flag in the hasher see https://github.com/nrwl/nx/commit/65e5e148dbdcbbb0dbb3c111e01cef50a2e58583:
Expected Behavior
Project graph should work on older git versions aswell.
Steps to Reproduce
docker run --rm -it node:16.17.0 /bin/bash
root@97282cc43a86:/# git --version
git version 2.20.1
root@97282cc43a86:/# git ls-files --recurse-submodules -s -z --exclude-standard .
fatal: ls-files --recurse-submodules unsupported mode
Failure Logs
Environment
Node : 16.17.0 OS : linux x64 yarn : 1.22.19
nx : 14.8.2 @nrwl/angular : Not Found @nrwl/cypress : Not Found @nrwl/detox : Not Found @nrwl/devkit : 14.8.2 @nrwl/esbuild : Not Found @nrwl/eslint-plugin-nx : 14.8.2 @nrwl/expo : Not Found @nrwl/express : Not Found @nrwl/jest : 14.8.2 @nrwl/js : 14.8.2 @nrwl/linter : 14.8.2 @nrwl/nest : 14.8.2 @nrwl/next : Not Found @nrwl/node : 14.8.2 @nrwl/nx-cloud : Not Found @nrwl/nx-plugin : 14.8.2 @nrwl/react : Not Found @nrwl/react-native : Not Found @nrwl/rollup : Not Found @nrwl/schematics : Not Found @nrwl/storybook : Not Found @nrwl/web : Not Found @nrwl/webpack : 14.8.2 @nrwl/workspace : 14.8.2 typescript : 4.8.4
Issue Analytics
- State:
- Created a year ago
- Comments:7 (4 by maintainers)

Top Related StackOverflow Question
@skrtheboss, 2f0d61f seems to fix this issue. Is there an ETA on when the fix it will be released?
We don’t recommend using a caret for Nx versions, since even patch versions may have migrations associated.