Skip to content

root task lint (turbo run lint) looks like it invokes turbo and might cause a loop #5290

Closed Answered by anthonyshew
tienlx97 asked this question in Help
Discussion options

You must be logged in to vote

Since we don't have any reproductions to look at, I'm going to have to assume that this is not a bug but, rather, that the folks here are running into a small protection that we have in place to make sure you don't recursively call turbo.

For instance, if you have:

// package.json
{
  "scripts": {
    "lint": "turbo run lint:js lint:css lint:md"
  }
}

And try to run turbo lint, that would be a turbo command inside another turbo command, which isn't something we want to support. Instead, you would want to use your package manager to run the lint command (e.g. npm run lint, pnpm lint, etc.).

Replies: 4 comments 13 replies

Comment options

You must be logged in to vote
9 replies
@kenyipp
Comment options

@d-kja
Comment options

@agomesd
Comment options

@anthonyshew
Comment options

@JBhrayn
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by anthonyshew
Comment options

You must be logged in to vote
4 replies
@dvelasquez
Comment options

@cjkihl
Comment options

@anthonyshew
Comment options

@cjkihl
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet