In #3645 the idea was raised to be able to skip the sanity check for extensions only, which might be useful if you are doing `--module-only --rebuild`