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

Panic when running turbo run test --dry #871

@weyert

Description

@weyert

What version of Turborepo are you using?

trunk

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

pnpm

What operating system are you using?

Mac

Describe the Bug

A panic happens when executing the command ./turbow.sh run test --dry on trunk

@gsoltis

❯ ./turbow.sh run test --dry

Packages in Scope
Name Path
@turbo/codemod packages/turbo-codemod
benchmark benchmark
cli cli
create-turbo packages/create-turbo
docs docs

Tasks to Run
cli#test
Task = test
Package = cli
Hash = 45d563cd2aa4e615
Directory = cli
Command = go test -race ./internal/...
Outputs =
Log File = cli/.turbo/turbo-test.log
Dependencies =
Dependendents =
create-turbo#build
Task = build
Package = create-turbo
Hash = 4f998d45d3a15b19
Directory = packages/create-turbo
Command = tsup src/index.ts --format cjs
Outputs = .next/*/
Log File = packages/create-turbo/.turbo/turbo-build.log
Dependencies =
Dependendents = create-turbo#test
create-turbo#test
panic: runtime error: slice bounds out of range [1:0]

Expected Behavior

I would expect the command wouldn't cause a panic

To Reproduce

Check out the source code with branch main
Run pnpm install
Run pnpm run build
Run ./turbow.sh run test --dry

Metadata

Metadata

Assignees

No one assigned

    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