Skip to content

Pruning results in different hashes for files with CRLF line endings #9616

@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-gitattributes/

Which canary version will you have in your reproduction?

turbo 2.3.4-canary.2

Enviroment information

CLI:
   Version: 2.3.4-canary.2
   Path to executable: /home/runner/work/turborepo-gitattributes/turborepo-gitattributes/node_modules/.pnpm/turbo-linux-64@2.3.4-canary.2/node_modules/turbo-linux-64/bin/turbo
   Daemon status: Not running
   Package manager: pnpm

Platform:
   Architecture: x86_64
   Operating system: linux
   WSL: false
   Available memory (MB): 14810
   Available CPU cores: 4

Environment:
   CI: Some(
    "GitHub Actions",
)
   Terminal (TERM): unknown
   Terminal program (TERM_PROGRAM): unknown
   Terminal program version (TERM_PROGRAM_VERSION): unknown
   Shell (SHELL): unknown
   stdin: true

Expected behavior

File hashes for README-dos-dos.md and README-unix-dos.md should be the same before and after running turbo prune.

Actual behavior

File hashes are different.

To Reproduce

Checkout the repo. Run ./test.sh. Observe that the hashes of some files are different.

Additional context

Might have to do with .gitattributes, but not sure. CRLF is always weird.

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