Skip to content

Instantly share code, notes, and snippets.

@keithel
Created July 26, 2023 15:24
Show Gist options
  • Save keithel/5c9e548a0e8099498384b0d14ab80f66 to your computer and use it in GitHub Desktop.
Save keithel/5c9e548a0e8099498384b0d14ab80f66 to your computer and use it in GitHub Desktop.
Determining mirrored Qt submodules that are not mirroring properly
I encountered an issue with Qt repositories that are mirrored, but not all submodules being mirrored properly.
This makes it impossible to clone and build new Qt releases. These notes help discover which submodule repositories are not syncing properly with the code.qt repositories:
For further testing to verify that all the needed submodules are mirrored properly for a given release tag, I test the following way:
```
$ git clone https://mirror.host/foo/qt5.git -b v6.5.2
$ ./init-repository --force --module-subset=default,-preview,-qtnetworkauth,-qtpurchasing,-qtquick3d,-qtlottie,-qtcharts,-qtdatavis3d,-qtvirtualkeyboard,-qtwebglplugin,-qtactiveqt,-qtconnectivity,-qtcoap,-qtmqtt,-qtopcua,-qtquicktimeline,-qtquickeffectmaker,-qtquick3dphysics
# (failures will occur if the needed submodule refs (commits) are not present in the submodule repositories)
$ for subm in $(git submodule status | awk '/^+/ {print $2}'); do git submodule update $subm; done
# Then, this will show you the submodule repositories that are not mirroring properly:
$ git submodule status | awk '/^+/ {print $2}'
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment