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

Show warning if package.json uses local (file:) packages #7766

Open
mrseanryan opened this issue Dec 14, 2019 · 0 comments
Open

Show warning if package.json uses local (file:) packages #7766

mrseanryan opened this issue Dec 14, 2019 · 0 comments

Comments

@mrseanryan
Copy link

mrseanryan commented Dec 14, 2019

Do you want to request a feature or report a bug?
Feature

What is the current behavior?

yarn does install local (file:) packages, but there is a known bug #6037 which makes using such packages a bit difficult, since it is pretty easy to fill up a whole disk with the yarn cache.

example from package.json:

  "devDependencies": {
    "basic-parser": "file:../parsers/basic-parser",
   }

where ../parsers/basic-parser points to another folder that contains another package.json

See #6037 for more details.

What is the expected behavior?

The new feature would be to show a warning if the package.json file contains file:.... packages.
Then the user will know there is a problem, and they can either decide to:

a) stop using local packages
OR
b) switch to another solution (like npm, although that approach can also have issues...)

The goal is to save people time, as currently a user can fill up their whole disk with yarn cache, before investigating and discovering the problem (#6037).

Also, adding a warning could be a simple temporary solution (assuming #6037 is not easy to fix).

Please mention your node.js, yarn and operating system version.
yarn: 1.19.1
node: 12.11.0
OS: Ubuntu 18.04

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant