-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
[Bug?]: enableGlobalCache default is not true #5682
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
Comments
The documentation I found is for v4. Which it only says on the homepage. Is there any way to add that info to all pages? |
Yarn 4.0.0 is stable, and $ yarn --version
4.0.0
$ yarn config enableGlobalCache
└─ enableGlobalCache
├─ Description: If true, the system-wide cache folder will be used regardless of `cache-folder`
├─ Source: <default>
└─ Value: true It's reflected in the documentation too at https://yarnpkg.com/configuration/yarnrc#enableGlobalCache This issue can be closed. |
Any chance this could be added to the changelog for v4? Our CI pipeline was configured as We're now using |
Feel free to make a PR adding it to https://github.com/yarnpkg/berry/blob/0ee621357efda7a6ce292f35a3755537f191de5f/CHANGELOG.md. |
Interestingly our upgrade from 3 to 4 did not do this, it explicitly set diff --git .yarnrc.yml .yarnrc.yml
index 6daead46b6..4b8bff8940 100644
--- .yarnrc.yml
+++ .yarnrc.yml
@@ -1,9 +1,7 @@
+compressionLevel: mixed
+
+enableGlobalCache: false
+
nodeLinker: node-modules
-plugins:
- - path: .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
- spec: '@yarnpkg/plugin-workspace-tools'
- - path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
- spec: '@yarnpkg/plugin-interactive-tools'
-
-yarnPath: .yarn/releases/yarn-3.6.4.cjs
+yarnPath: .yarn/releases/yarn-4.0.2.cjs |
Same here for 3.2.3 -> 4.1.1 upgrade, including |
Yes. See #5895 (comment) |
Self-service
Describe the bug
Thanks for all you efforts on making yarn a great piece of software :)
I believe I have found a mistake in the documentation or maybe a bug:
https://yarnpkg.com/configuration/yarnrc#enableGlobalCache says that the default is true.
I just installed yarn for the first time following these instructions and for me it is set to false.
Am I missing something?
To reproduce
Sadly https://yarnpkg.com/advanced/sherlock returns a Page Not Found error. I found https://website--yarn2.netlify.app/advanced/sherlock but the playground does not work for me: Internal Server Error. But it works with any yarn berry setup.
Environment
System: OS: macOS 13.5.1 CPU: (10) arm64 Apple M1 Pro Binaries: Node: 20.5.1 - /private/var/folders/8z/ppyfj7sd3_52p715brzb6pdm0000gn/T/xfs-2036de14/node Yarn: 3.6.2 - /private/var/folders/8z/ppyfj7sd3_52p715brzb6pdm0000gn/T/xfs-2036de14/yarn npm: 9.8.0 - /opt/homebrew/bin/npm npmPackages: jest: ^29.2.2 => 29.6.3
Additional context
No response
The text was updated successfully, but these errors were encountered: