From d00b289621cfa665c6765a92dc34fbec9e4192bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sun, 4 Sep 2022 10:39:18 +0300 Subject: [PATCH] Don't checkout submodules by default This makes sure that cargo does not clone and checkout all the submodules if pointing to this repository as a git dependency. To checkout the submodules `git submodule update --checkout` can be used. --- .gitlab-ci.yml | 2 ++ .gitmodules | 3 +++ 2 files changed, 5 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 33b5d7219..197d1ff08 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -524,6 +524,7 @@ doc-stripping: - job: 'build-nightly' artifacts: false script: + - git submodule update --checkout - PATH=~/.cargo/bin/:$PATH ./generator.py --gir-files-directories gir-files gst-gir-files --strip-docs --no-fmt - git diff --quiet || (echo 'Files changed after running `rustdoc-stripper -s`, make sure all documentation is protected with `// rustdoc-stripper-ignore-next`!'; git diff; false) @@ -536,6 +537,7 @@ docs: - job: 'build-nightly' artifacts: false script: + - git submodule update --checkout - curl --proto '=https' --tlsv1.2 -sSf -o gir-rustdoc.py https://gitlab.gnome.org/World/Rust/gir-rustdoc/-/raw/main/gir-rustdoc.py - chmod +x gir-rustdoc.py diff --git a/.gitmodules b/.gitmodules index 273a118bb..945c11fda 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,9 +1,12 @@ [submodule "gir"] path = gir url = https://github.com/gtk-rs/gir + update = none [submodule "gir-files"] path = gir-files url = https://github.com/gtk-rs/gir-files + update = none [submodule "gst-gir-files"] path = gst-gir-files url = https://gitlab.freedesktop.org/gstreamer/gir-files-rs.git + update = none