Skip to content

[Bug] Unreadable virtual file added by yarn install #262

@MLoughry

Description

@MLoughry

Describe the bug

I was invetigating using @berry/[email protected] in my repo. However, when I ran yarn, it added a file .yarn/virtual/@berry-pnpify-virtual-46907f4d0e2d3a80455eb5b30214ba5e256b13da685f0c8279698b23320cbfdc that the Windows file system could not open, and which git could not add.

PS E:\VSO\typescript-repro> git add .
error: readlink(".yarn/virtual/@berry-pnpify-virtual-46907f4d0e2d3a80455eb5b30214ba5e256b13da685f0c8279698b23320cbfdc"): Function not implemented
error: unable to index file .yarn/virtual/@berry-pnpify-virtual-46907f4d0e2d3a80455eb5b30214ba5e256b13da685f0c8279698b23320cbfdc
fatal: adding files failed

To Reproduce

See my exploration repo on the pnpify branch. Running yarn from a Windows machine from commit 5ae2746d00dd9942ba066de931ddacca46f66c6e seems to generate this file, and you can see the results from there.

Environment if relevant (please complete the following information):

  • OS: Windows 10
  • Node version 12.4.0
  • Yarn version v2.0.0 (unless there's a more granular version than given by yarn --version)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions