-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 vendor should have a separate option to choose where to output the .cargo/config #7280
Comments
The configuration is printed to stdout, and stderr for other messages. It should just work if you can redirect your stdout to a file. For example, $ mkdir .cargo
$ cargo vendor my-vendored-sources >> .cargo/config.toml There are some explanation about cargo printing out the needed configuration in the doc of
|
It does work as you describe, but the reason why I dislike that (and why I opened the PR) is that it is not clear from the CLI interface itself: When I'm inside terminal, I shouldn't need to read external documentation or a manpage to know such crucial piece of information. |
Thanks for the reply! You describe the issue pretty much the same as what I've seen. This does sound like an issue of lacking of documentation. A clear CLI help would definitely help people understand how to use One thing worth noting is Cargo has one short help text (via
I don't quite get this. This doesn't resolve the aforementioned issue — lack of documentation. People still need to read into the doc to figure out where |
Just realized the original issue is that Lines 36 to 50 in 04621e2
I can think of two options to solve this:
For this part of design, it is not accepted so I'll take down the labels. |
Currently, the choice is between:
printing out
and
which outputs... nothing. At all.
There should be a way to reliably get that .cargo/config snippet somehow.
The text was updated successfully, but these errors were encountered: