You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cargo has a built-in check to avoid publishing when the working directory is dirty (to avoid publishing file unintentionally). However, this check does currently not work for git submodules.
The text was updated successfully, but these errors were encountered:
Check in package/publish if a git submodule is dirty.
This extends the "dirty" check during `cargo publish` to check files within a submodule.
It is a little crude, since it unconditionally tries to open every submodule even if it is not relevant to the current package. The performance doesn't seem too bad (~2s for rust-lang/rust with 16 submodules).
It's also a little lax, by ignoring uninitialized submodules. Presumably the verification build will fail if the submodule is not initialized. It could be more aggressive, by requiring all submodules to be initialized?
Closes#3622
Cargo has a built-in check to avoid publishing when the working directory is dirty (to avoid publishing file unintentionally). However, this check does currently not work for git submodules.
The text was updated successfully, but these errors were encountered: