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

cargo --version --verbose should give more information (and perhaps have an alias like "bugreport") #6161

Open
2 of 4 tasks
joshtriplett opened this issue Oct 10, 2018 · 5 comments
Labels
C-enhancement Category: enhancement Command-version S-needs-design Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.

Comments

@joshtriplett
Copy link
Member

joshtriplett commented Oct 10, 2018

Things to include:

  • rustc version
  • OS and OS version (host system). (This includes detecting Linux distribution if possible; some bits of /etc/os-release would suffice for a start.)
  • Default target
  • git hash of the crates.io index. (This would work well with future cargo options to pretend the index was at that point, to help reproduce issues.)
@ehuss
Copy link
Contributor

ehuss commented Jul 14, 2020

cc #6275

bors added a commit that referenced this issue Oct 11, 2021
Add some more information to verbose version.

This adds a little bit of extra information to the verbose version command.

cc #6275 and #6161

Some examples of what it might look like:

```
cargo 1.57.0
release: 1.57.0
host: x86_64-unknown-linux-gnu
libgit2: 1.3.0 (sys:0.13.23 vendored)
libcurl: 7.79.1-DEV (sys:0.4.49+curl-7.79.1 vendored ssl:OpenSSL/1.1.1k)
ssl: OpenSSL 1.1.1k  25 Mar 2021
```

```
cargo 1.57.0
release: 1.57.0
host: x86_64-pc-windows-msvc
libgit2: 1.3.0 (sys:0.13.23 vendored)
libcurl: 7.79.1-DEV (sys:0.4.49+curl-7.79.1 vendored ssl:Schannel)
```

```
cargo 1.57.0
release: 1.57.0
host: x86_64-apple-darwin
libgit2: 1.3.0 (sys:0.13.23 vendored)
libcurl: 7.64.1 (sys:0.4.49+curl-7.79.1 system ssl:(SecureTransport) LibreSSL/2.8.3)
ssl: OpenSSL 1.1.1l  24 Aug 2021
```
@epage
Copy link
Contributor

epage commented Oct 24, 2023

#9968 gets us most of what is asked for.

I wonder if we should update our template to include this.

Now for a "bugreport", I see that as separate as we'd want to evaluate including

  • config
  • maybe some aspects of the project

It wouldn't be important to include everything up front but to have an idea of what we might want to include and make sure its possible.

@epage epage added S-needs-design Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted. C-enhancement Category: enhancement labels Oct 24, 2023
@weihanglo
Copy link
Member

The other things left is rustc and crates.io index, which is a bit odd and tricky to add.

  • Rustc version is affected by several configs and environment variables, such like RUSTC and other wrappers.
  • crates.io index, like rustc version, is a dynamic value fitting in the same category.

They are not static so perhaps cargo config get or something lese is a better way for displaying the values.

@epage
Copy link
Contributor

epage commented Oct 25, 2023

We do dynamically write out the version, so being dynamic in cargo version --verbose or a cargo --bugreport is probably fine. While we might have other commands, like cargo config, to query things, the idea would be that we capture everything relevant for a bug report.

@weihanglo
Copy link
Member

Sorry for the confusion. I meant configurable not dynamic. I don't think libgit2 or curl or ssl is really configurable at this time. That's a difference to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: enhancement Command-version S-needs-design Status: Needs someone to work further on the design for the feature or fix. NOT YET accepted.
Projects
None yet
Development

No branches or pull requests

4 participants