-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Closed
Labels
kind: bugSomething isn't workingSomething isn't working
Description
What version of Turborepo are you using?
1.10.7
What package manager are you using / does the bug impact?
Yarn v2/v3 (node_modules linker only)
What operating system are you using?
Linux
Describe the Bug
I'm attempting to use the prune command to focus my workspace for CI/CD + prod release. There are submodules up to a depth of 3 that are important to my app.
> yarn turbo prune --scope=my-app
> cd out
> yarn
> yarn turbo build --filter=my-app
This results in an error immediately:
ERROR run failed: error hashing package files: git error: 'git ls-tree' in /home/-/Dev/-/-/monorepo/out/packages/openapi/public-spec exited with code 128 stderr: fatal: not a git repository: /home/-/Dev/-/-/monorepo/out/packages/openapi/public-spec/../../../.git/modules/packages/openapi/modules/public-spec
where both openapi and public-spec are monorepos, public-spec being nested inside open-api.
Expected Behavior
I had expected this to use non-git based hashing, but I think the submodules are causing issue for one reason or another.
To Reproduce
Create a new project, and add some submodules, then try to prune + execute a command on the output directory.
Reproduction Repo
No response
Metadata
Metadata
Assignees
Labels
kind: bugSomething isn't workingSomething isn't working