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

[Feature] Verbose flag for installation #6556

Open
1 of 2 tasks
cawolfdev opened this issue Oct 11, 2024 · 0 comments
Open
1 of 2 tasks

[Feature] Verbose flag for installation #6556

cawolfdev opened this issue Oct 11, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@cawolfdev
Copy link

  • I'd be willing to implement this feature (contributing guide)
  • This feature is important to have in this repository; a contrib plugin wouldn't do

Describe the user story

As a developer, I would like to know why yarn install fails.

NPM: repository installs without error, on all environments
Yarn 1: repository installs without error, on all environments.
Yarn 3.5: Local machine, repository installs without error
Yarn 3.5: Different machine, repository installs without error
Yarn 3.5: Jenkins server: repository fails to install.

There is no way to debug what is failing or why.

It would be useful to know what yarn is attemping to do when it errors, or locks up.

Logs printed to the console:

2024-10-11T00:49:46.202Z] + yarn install --frozen-lockfile

[2024-10-11T00:49:47.706Z] ➤ YN0050: The --frozen-lockfile option is deprecated; use --immutable and/or --immutable-cache instead

[2024-10-11T00:49:47.706Z] ➤ YN0000: ┌ Resolution step

[2024-10-11T00:49:48.669Z] ➤ YN0002: │ @react-native/babel-plugin-codegen@npm:0.74.83 doesn't provide @babel/preset-env (p8ed8f), requested by @react-native/codegen

[2024-10-11T00:49:48.669Z] ➤ YN0002: │ @react-native/babel-plugin-codegen@npm:0.74.85 doesn't provide @babel/preset-env (pc2337), requested by @react-native/codegen

[2024-10-11T00:49:48.669Z] ➤ YN0002: │ babel-plugin-transform-flow-enums@npm:0.0.2 doesn't provide @babel/core (p62fa5), requested by @babel/plugin-syntax-flow

[2024-10-11T00:49:48.670Z] ➤ YN0000: └ Completed in 0s 679ms

[2024-10-11T00:49:48.670Z] ➤ YN0000: ┌ Fetch step

[2024-10-11T01:17:30.880Z] Sending interrupt signal to process

[2024-10-11T01:17:42.052Z] Terminated

[2024-10-11T01:17:42.191Z] script returned exit code 143

[Pipeline] }

Yarn 3.5 simply stops for 27 minutes. Doing, as far as I can tell -- absolutely nothing.

Describe the solution you'd like

To have clear information about what yarn install is doing, so that when it fails on CI, it can be diagnosed. To have similar debugging issues as yarn 1, or npm for when yarn install fails to install anything.

Implement a new config option --verbose, or respect a flag such as YARN_LOG_LEVEL to control verbosity.

Describe the drawbacks of your solution

None.

Describe alternatives you've considered

No documentation as to how to hook into the installation process in order to output logs.

@cawolfdev cawolfdev added the enhancement New feature or request label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant