Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot run when yarn uses global cache as repository and the project and cache are in same drives #15854

Closed
7 tasks done
mcenkar opened this issue Feb 9, 2024 · 1 comment
Closed
7 tasks done

Comments

@mcenkar
Copy link

mcenkar commented Feb 9, 2024

Describe the bug

Follow up to #15801 (comment)

My setup:

D:\Company\Workspace\
-                    vite-15801
-                    programs\.yarn\Berry\

So https://github.com/mcenkar/vite-15801/ is checked out to d:\Company\Workspace\vite-15801\ and yarn global cache is in d:/Company/Workspace/programs/.yarn/Berry/

Steps to reproduce:

  • checkout mentioned repo to mentioned folder,
  • in project's .yarnrc.yml add entry: globalFolder: "d:/Company/Workspace/programs/.yarn/Berry/"
  • yarn
  • yarn dev

image

Reproduction

https://github.com/mcenkar/vite-15801/

Steps to reproduce

No response

System Info

NA

Used Package Manager

yarn

Logs

No response

Validations

@sapphi-red
Copy link
Member

I was able to reproduce. But this is a bug in yarn. yarn's pnp.resolveToUnqualified returns a incorrect path.

const result = pnp.resolveToUnqualified('vue', 'D:/foo/vite-15801-master', { considerBuiltins: false })
console.log(result)
// D:\foo\vite-15801-master\.yarn\__virtual__\vue-virtual-42724c22b5\4\d:\foo\.yarn\Berry\cache\vue-npm-3.4.15-11fe9fcc84-10c0.zip\node_modules\vue\

const pkg = pnp.resolveToUnqualified(pkgName, basedir, {
considerBuiltins: false,
})

Closing as this is not a bug in Vite. Please report to yarn.

@github-actions github-actions bot locked and limited conversation to collaborators Feb 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants