berry icon indicating copy to clipboard operation
berry copied to clipboard

[Bug?]: `globalFolder` is not `${HOME}/.yarn/berry` on Windows as documented

Open JounQin opened this issue 6 months ago • 2 comments

Self-service

  • [x] I'd be willing to implement a fix

Describe the bug

https://yarnpkg.com/configuration/yarnrc#globalFolder

It's using ${HOME}\AppData\Local\Yarn\Berry\cache as globalFolder on GitHub Actions at least

Related codes:

https://github.com/yarnpkg/berry/blob/75534786e1a1456a92cdcfe2498c97dc786b6f0a/packages/yarnpkg-core/sources/folderUtils.ts#L5-L8

To reproduce

https://github.com/yarnpkg/pnp-rs/actions/runs/15401892538/job/43336240063?pr=10#step:6:143

Environment

System:
    OS: macOS 15.5
    CPU: (10) arm64 Apple M4
  Binaries:
    Node: 24.1.0 - ~/.tmp/xfs-46bac26b/node
    Yarn: 1.22.22 - ~/.tmp/xfs-46bac26b/yarn
    npm: 11.3.0 - ~/.local/state/fnm_multishells/63216_1748917204732/bin/npm
    pnpm: 10.11.0 - /opt/homebrew/bin/pnpm
    bun: 1.2.15 - /opt/homebrew/bin/bun

Additional context

No response

JounQin avatar Jun 03 '25 04:06 JounQin

The settings docs does not show default values but rather an example value

Otherwise some settings like httpProxy and npmPublishRegistry would be undocumentable

clemyan avatar Jun 10 '25 17:06 clemyan

The settings docs does not show default values but rather an example value

Can we document this? I was always thinking they are listed as the default values.

JounQin avatar Jun 10 '25 18:06 JounQin

Hi! 👋

It seems like this issue as been marked as probably resolved, or missing important information blocking its progression. As a result, it'll be closed in a few days unless a maintainer explicitly vouches for it.

yarnbot avatar Jul 14 '25 17:07 yarnbot