Skip to content

Conversation

@alvaro-cuesta
Copy link
Contributor

Submodules need to be initialized before building on a fresh repo. There is an error message indicating this, but #278 introduced a bug where the warning is not shown anymore.

The root cause is that submodules are (empty) directories even if not yet initialized so checking if "submodule" is a directory always passes. Instead it should check "submodule/src", which should only exist if the submodule has been initialized.

I just saw #280 which supersedes #278 but I still posted this PR for the record and because the change is tiny, so it's probably safe to merge the fix.

Submodules need to be initialized before building on a fresh repo. There
is an error message indicating this, but lichess-org#278 introduced a bug where the
warning is not shown anymore.

The root cause is that submodules are (empty) directories even if not
yet initialized so checking if "submodule" is a directory always passes.
Instead it should check "submodule/src", which should only exist if the
submodule has been initialized.
@alvaro-cuesta
Copy link
Contributor Author

Apologies for introducing this issue, should've tested on a fresh repo!

@niklasf niklasf merged commit 215fae2 into lichess-org:master Oct 9, 2025
7 checks passed
@niklasf
Copy link
Member

niklasf commented Oct 9, 2025

Thanks! No worries.

@alvaro-cuesta alvaro-cuesta deleted the fix/submodule-init-hint branch October 9, 2025 18:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants