-
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 fetch
does not actually use all target architectures as the default.
#14795
Comments
Thanks for the bug report. Could you attach some additional information, like
cargo/src/cargo/ops/cargo_fetch.rs Lines 35 to 64 in cb088dc
Line 119 in cb088dc
Bugs might be there if they exist. |
Hi @weihanglo . This the version of cargo running on my container installed through zypper.
The commands ran in that service is as follows.
I wouldn't know of a regression as this is the first time that I noticed this and my first bug report about it.
None. I just use whatever is the default.
So shouldn't the help section of
This seems to confuse me more as this was the only assumption I have from the help section but the behaviour for what I expected was different than what was described. Should fetch at least have the same behaviour as vendor that they both fetch everything in the dependency resolution by default? |
Hi. I tried using the |
Hello. I have an issue with
cargo-fetch
behaving differently thancargo-vendor
. In a part of the help section ofcargo fetch
, it says for the flag--target
However, I believe this is untrue since in some architectures, they cannot find their dependencies. I haven't tried the
--target
flag yet as a workaround but given that some target architectures cannot find their dependencies is weird to me, since it says that the default is to use "all" target architectures.Here is a comparison between
cargo vendor
vscargo fetch
.You can see here that in https://build.opensuse.org/package/show/home:uncomfyhalomacro:branches:editors:registry/kak-lsp, only aarch64, x86_64, and ppc64le are able to find their dependencies and compile (whether it fails or not). i586, armv7l, and s390x are the architectures that were not able to find their dependencies.
Everything in https://build.opensuse.org/package/show/home:uncomfyhalomacro:branches:editors:vendor/kak-lsp are able to find their dependencies and are able to compile (whether it fails or not).
I would like to know if there is an inaccuracy with the documentation or not.
For context, I've been helping out to build a tool to ease the process of vendoring dependencies in openSUSE/SUSE. https://github.com/openSUSE-Rust/obs-service-cargo.
The text was updated successfully, but these errors were encountered: