Cargo tries to update git submodules even with build.submodules = false and --offline #10727
Labels
A-git
Area: anything dealing with git
C-bug
Category: bug
S-needs-info
Status: Needs more info, such as a reproduction or more background for a feature request.
Problem
For dependencies downloaded with git and containing submodules, cargo tries to update those submodules even if config.toml sets build.submodules to false and
--offline
flag is used.The problem can be observed with the gst-plugins-rs project and results in the following example error:
There seems to be no way to fully disable network access and make cargo trust that the available sources are up to date.
Steps
cargo build --offline
Possible Solution(s)
No response
Notes
The problem is relevant with the yocto build system which disables name resolution when compiling and fetches all sources on its own.
Version
The text was updated successfully, but these errors were encountered: