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

bug: Turbo should not die on permissions errors, and should log a warning for permissions errors inside workspaces #997

@hrasekj

Description

@hrasekj

What version of Turborepo are you using?

1.1.10

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

pnpm

What operating system are you using?

Linux

Describe the Bug

I have monorepo based on pnpm and for some reason turbo does not see packages in apps/ folder. I tried to install all dependencies with yarn too, delete all caches and the result was the same.

package.json

{
  "name": "root",
  "private": true,
  "engines": {
    "pnpm": ">=6.0.0",
    "node": "^16"
  },
  "packageManager": "pnpm@6.32.4",
  "scripts": {
    "dev": "turbo run dev --dry",
    // ...
  },
  "devDependencies": {
    "turbo": "^1.1.10"
  },
  // ...
}

turbo.json

{
  "$schema": "https://turborepo.org/schema.json",
  "baseBranch": "origin/devel",
  "npmClient": "pnpm",
  "pipeline": {
    "build": {
      "dependsOn": ["^build"],
      "outputs": ["dist/**", ".next/**"]
    },
    "types": {
      "dependsOn": ["^types"],
      "outputs": ["typings/**"]
    },
    "dev": {
      "cache": false
    }
  }
}

pnpm-workspace.yaml

packages:
  - 'apps/**'
  - 'packages/**'

All packages have naming convention like @namespace/package, which means that package named @admin/web is inside directory apps/admin-web/ and @admin/database is inside directory packages/admin-database.

The build and types scripts are present in all packages in both folders apps/ and packages/. The dev script is present only in packages in apps/ folder.

> root@ dev /my-monorepo
> turbo run dev --dry


Packages in Scope
Name                  Path                          
@admin/database       packages/admin-database       

Tasks to Run

Expected Behavior

I'm expecting to see packages in apps/ folder too.

To Reproduce

Next problem is reproduce. I tried example from docs npx create-turbo@latest and tried use my naming convention described here. And everything works as expected.

There must be something else i'm missing? 🤔

Thanks for any help.

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