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

[Bug?]: intall --verbose --production shows GETs are performed for devDependencies as well #9038

Open
1 task
iccicci opened this issue Feb 27, 2024 · 0 comments
Labels

Comments

@iccicci
Copy link

iccicci commented Feb 27, 2024

Self-service

  • I'd be willing to implement a fix

Describe the bug

With yarn --verbose --frozen-lockfile --production, while building a Docker image (i.e. on a machine where yarn never run), I see yarn performs the GETs relative to packages added as devDependencies not only for those added as dependencies.

In the end yarn correctly installs only dependencies as expected, but I'm wondering if there is some resources and time wasting to performs such GETs.

Is there some reason I do not understand to fetch devDependencies when --production is specified or this can be considered as a minor bug?

Thank you

To reproduce

  1. git clone git@github.com:iccicci/cardano-localnet.git
  2. git checkout yarn-issue
  3. make

The output is also saved in build.log.

Environment

yarn run v1.22.19
error Command "dlx" not found.

Both inside and outside the docker build.

@iccicci iccicci added the bug label Feb 27, 2024
@merceyz merceyz transferred this issue from yarnpkg/berry Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant