-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Description
Do you want to request a feature or report a bug?
Feature
What is the current behavior?
When running yarn
commands, it includes the version number:
$ yarn install
yarn install v0.15.0
info No lockfile found.
success Nothing to install.
This is very useful, particularly with bug reports (as anyone that includes the full output with the bug report will automatically include the version number.
What is the expected behavior?
It would be useful to also include the installation method in that output. For example, when installed from the Debian/Ubuntu repo:
$ yarn install
yarn install v0.15.0-deb
info No lockfile found.
...
Similarly, when installed via Windows installer:
yarn install v0.15.0-msi
Or from tarball:
yarn install v0.15.0-tarball
Some bugs are specific to certain installation methods, so we end up having to ask "Did you install through the Ubuntu package, the tarball, or npm?" in some bug reports.
This would require the packaging scripts to make a modification to some file to signify the installation method, and something at runtime to read that file.