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

--filter=[HEAD^1] works but --filter=[HEAD^N] returns error #1157

@sppatel

Description

@sppatel

What version of Turborepo are you using?

1.1.5

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

Yarn v1

What operating system are you using?

Mac

Describe the Bug

npx turbo run test --filter='[HEAD^1]' --dry=json | jq '.packages' works but going past HEAD^1 always returns an error.

npx turbo run test --filter='[HEAD^2]' --dry=json | jq '.packages'
unable to check diff vs. HEAD^2: exit status 128

If i choose a particular commit in the past that works...

npx turbo run test --filter='[b2cbc9dd2]' --dry=json | jq '.packages'

Expected Behavior

Support HEAD^N references to filter.

To Reproduce

  1. clone any repo w/ turbo support (including this repo)
  2. run a dry run with a filter using HEAD^5

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions