berry
berry copied to clipboard
[Bug?]: `yarn up` should ignore file/link protocols
Self-service
- [ ] I'd be willing to implement a fix
Describe the bug
I'd like to be able to run yarn up "*" but it currently fails on file: protocol packages. It also removes the link:./src entry (trying to install the package from the NPM registry).
To reproduce
(FYI, the https://yarnpkg.com/advanced/sherlock link is broken)
// package.json
{
"name": "reproduction",
"dependencies": {
"foo": "file:./deps/foo.tgz"
}
}
Environment
System:
OS: macOS 14.2
CPU: (8) arm64 Apple M1 Pro
Binaries:
Node: 20.9.0 - /private/var/folders/gg/_s_s32pd1fzfmgk_kcfk1sgm0000gn/T/xfs-e251739a/node
Yarn: 4.0.2 - /private/var/folders/gg/_s_s32pd1fzfmgk_kcfk1sgm0000gn/T/xfs-e251739a/yarn
npm: 10.1.0 - ~/.asdf/plugins/nodejs/shims/npm
Additional context
No response