Skip to content

[Feature] info with additional bug info #2125

Open
@xenoterracide

Description

@xenoterracide
  • [*] This feature can already be implemented through a plugin

Describe the user story

A lot of bug reports ask for versions of things,

Describe the solution you'd like

it would be awesome if you could do something like yarn info --with-bug-info prettier-plugin-java, and have it spit out the equivalent of this

> yarn info prettier-plugin-java                # ppm -> 1-setup ! + ?
└─ prettier-plugin-java@npm:0.8.3
   ├─ Version: 0.8.3
   │
   └─ Dependencies
      ├─ java-parser@npm:0.8.2 → npm:0.8.2
      ├─ lodash@npm:4.17.20 → npm:4.17.20
      └─ prettier@npm:2.1.x → npm:2.1.2
> yarn --version                                # ppm -> 1-setup ! + ?
2.3.3
> node --version                                # ppm -> 1-setup ! + ?
v14.15.0
> uname -a                                      # ppm -> 1-setup ! + ?
Darwin Calebs-MBP 19.6.0 Darwin Kernel Version 19.6.0: Thu Jun 18 20:49:00 PDT 2020; root:xnu-6153.141.1~1/RELEASE_X86_64 x86_64

and possibly some other important things... like maybe all of the direct dependency versions resolved... or really I'm trying to think of a good way to list the typescript version . side feature, a way to list all of the direct dependencies installed and their versions, I haven't seemed to be able to find a way to do this...

Prior Art

gradle

> yarn gradle --version                    # ppm -> 1-setup ! + ? RC=1

------------------------------------------------------------
Gradle 6.7
------------------------------------------------------------

Build time:   2020-10-14 16:13:12 UTC
Revision:     312ba9e0f4f8a02d01854d1ed743b79ed996dfd3

Kotlin:       1.3.72
Groovy:       2.5.12
Ant:          Apache Ant(TM) version 1.10.8 compiled on May 10 2020
JVM:          11.0.8 (AdoptOpenJDK 11.0.8+10)
OS:           Mac OS X 10.15.6 x86_64

Describe the drawbacks of your solution

obvious problems with the last thing might be how to report the OS info, though maybe node has an easy way to do this.

Describe alternatives you've considered

I know I've seen a node module that more or less does this, but seems to me that yarn building in this functionality into core or as a plugin seems useful, especially since it should easily have access to all or most of this information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestpluginFeatures that should be a plugin

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions