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

Package not found when filtering with package and git specifier #9096

@Xiot

Description

@Xiot

Verify canary release

  • I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue

https://github.com/Xiot/turbo-filter-break

What package manager are you using / does the bug impact?

Yarn v2/v3/v4 (node_modules linker only)

What operating system are you using?

Mac

Which canary version will you have in your reproduction?

turbo 2.1.1-canary.0

Describe the Bug

When using a filter like

turbo run lint '--filter=...@repo/eslint-config[HEAD~1]'

turbo returns an error if @repo/eslint-config wasn't modified in the latest commit.

× No package found with name '@repo/eslint-config' in workspace

I originally brought this up in discord.
https://discord.com/channels/818588653005176832/1279503316111327292/1279503316111327292

The use case for this, is that I want to run lint on any package that changes, or if the eslint-config package changes, I want to run lint on everything.

turbo run lint '--filter=...@repo/eslint-config[HEAD~1]' '--filter=[HEAD^1]'

Expected Behavior

The package is found, and in the case of the sha 05b00c9 in the linked repo, no tasks are executed.

To Reproduce

git clone https://github.com/Xiot/turbo-filter-break.git
cd turbo-filter-break
turbo run lint '--filter=...@repo/eslint-config[HEAD~1]'

Additional context

The filter worked correctly in 1.13.4, however fails in 2.0.0.

Looking at the breaking changes in the 2.0.0 release, by gut feeling is that it is related to #8142

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