-
Notifications
You must be signed in to change notification settings - Fork 2.6k
cargo build tries to download packages #2229
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
Comments
If you have dependencies, this is expected behavior, yes. Otherwise, how would you get them? If you've already downloaded said dependencies, though, it should not. |
Yeah as @steveklabnik mentioned this is expected behavior because the dependencies need to come from somewhere, so I'm going to close this as working as intended. |
Perhaps I wasn't clear? I asked cargo to build not to download. If it needs to download, I expect that to be another command. If the command auto-downloads, it should be reflected in the command. Even better would be if there was some kind of configuration saying "I don't want to download automatically". If download is needed, it will instead error, saying something like:
|
Ah yeah there are a number of other issues in the repo about intentionally telling Cargo to not touch the network, such as #2111 |
I think the way that |
It doesn't. I think you may be conflating a few different behaviors here. If you don't have the requirements to build, If you do have the requirements, then it shouldn't check the network. There may be bugs, and they should be fixed. |
Yes, I may have been bitten by previous bugs. I just remember the network being off-line, I had all the files in the registry already, yet still I couldn't build because |
When issuing
It will install packages from the internet. From my very slow internet connection, that is no good.
The text was updated successfully, but these errors were encountered: