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

Unable to remove files from affecting scope with --ignore= #728

@glesperance

Description

@glesperance

What version of Turborepo are you using?

1.1.3-canary.1

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

Yarn v1

What operating system are you using?

Mac

Describe the Bug

The --ignore argument is not effective at removing files from affecting the cache hash / scope.

I want to use --ignore="**/* to allow me to cache a build based solely on the files and environment variables I choose. Not on the entire content of the package.

Expected Behavior

Files ignored by the --ignore=**/* glob should not affect cache hash / scope.

To Reproduce

  1. $ npx create-turbo@latest
  2. $ cd my-turborepo
  3. $ yarn turbo run build
  4. $ touch apps/web/new-file.txt
  5. $ yarn turbo run build --ignore="**/*" --scope=web

(5) should not result in a cache miss.

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