'git submodule update' in Conan-Recipe ausführen
English
Deutsch
Um git submodule update in der conanfile.py auszuführen, kann einfach ein self.run()-Befehl nach dem git clone-Befehl hinzugefügt werden:
conan_git_clone.py
self.run("git clone https://github.com/conan-io/hello.git")
self.run("cd hello && git submodule update --init --recursive")Vollständiges Beispiel:
conan_git_full.py
self.run("git clone https://github.com/seznam/elasticlient.git -b version-0.2")
self.run("cd elasticlient && git submodule update --init --recursive")Beachten, dass cd <directory> && git submodule update ausgeführt werden muss.
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow