Skip to content

Commit

Permalink
Improve error message when a submodule directory is missing completely
Browse files Browse the repository at this point in the history
  • Loading branch information
Kobzol committed Feb 20, 2025
1 parent c62239a commit 9535151
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ impl Build {
}
self.config.update_submodule(submodule);
let absolute_path = self.config.src.join(submodule);
if dir_is_empty(&absolute_path) {
if !absolute_path.exists() || dir_is_empty(&absolute_path) {
let maybe_enable = if !self.config.submodules()
&& self.config.rust_info.is_managed_git_subrepository()
{
Expand Down

0 comments on commit 9535151

Please sign in to comment.