Skip to content

Directory glob does not work for repositories without version control #9574

@cjquines

Description

@cjquines

Verify canary release

  • I verified that the issue exists in the latest Turborepo canary release.

Link to code that reproduces this issue

https://github.com/cjquines/turborepo-manual-scm

Which canary version will you have in your reproduction?

turbo 2.3.4-canary.2

Enviroment information

turbo 2.3.4-canary.2

CLI:
   Version: 2.3.4-canary.2
   Path to executable: /dir/turborepo-manual-scm/node_modules/.pnpm/turbo-darwin-arm64@2.3.4-canary.2/node_modules/turbo-darwin-arm64/bin/turbo
   Daemon status: Running
   Package manager: pnpm

Platform:
   Architecture: aarch64
   Operating system: macos
   WSL: false
   Available memory (MB): 10932
   Available CPU cores: 12

Environment:
   CI: None
   Terminal (TERM): xterm-kitty
   Terminal program (TERM_PROGRAM): unknown
   Terminal program version (TERM_PROGRAM_VERSION): unknown
   Shell (SHELL): /bin/zsh
   stdin: false

Expected behavior

The task app-a#build has the input src, and per file glob specification, should include all the files in its src as part of its input.

Actual behavior

With the manual SCM, the src is not part of the input.

To Reproduce

Clone the repo, then remove version control (via e.g. mv .git _git).

Run turbo build --summarize; observe that the task app-a#build does not have src in its inputs.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions