这是indexloc提供的服务,不要输入任何密码
Skip to content

[turborepo] Issue using prune + submodules #5485

@mattoni

Description

@mattoni

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

Labels

kind: bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions