Skip to content

plugnplayWindowsSupport warning because of drive letter case mismatch #7005

@codepunkt

Description

@codepunkt

When running yarn --pnp in directory 'D:\projectName', this pops up:

warning Plug'n'Play on Windows doesn't support the cache and project to be kept on separate drives

The cache directory is configured as 'd:\.yarncache', yarn cache dir returns 'd:\.yarncache\v4'.
Afaik, windows drive letters in paths are case insensitive, but the code around line 400 of src/config.js does not account for that and produce a mismatch between cacheRootFolderDrive and lockfileFolderDrive, resulting in the warning shown above.

It would be nice if this could be fixed.

specs: windows 10, yarn 1.13.0, node 10.15.1

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions