Skip to content

Commit 47d2ef2

Browse files
authored
Remove submodules code from CI (#600)
1 parent 001fe86 commit 47d2ef2

2 files changed

Lines changed: 17 additions & 18 deletions

File tree

.taskcluster.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ tasks:
4141
- "-cx"
4242
- "curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && python3 get-pip.py &&
4343
rustup component add clippy rustfmt &&
44-
git clone --recursive --quiet ${repository} &&
44+
git clone --quiet ${repository} &&
4545
cd rust-code-analysis &&
46-
git -c advice.detachedHead=false checkout --recurse-submodules ${head_rev} &&
46+
git -c advice.detachedHead=false checkout ${head_rev} &&
4747
pip3 install --quiet pre-commit &&
4848
pre-commit run -a --show-diff-on-failure &&
4949
cargo test --workspace --verbose --all-features &&
@@ -66,9 +66,9 @@ tasks:
6666
command:
6767
- "/bin/bash"
6868
- "-cx"
69-
- "git clone --recursive --quiet ${repository} &&
69+
- "git clone --quiet ${repository} &&
7070
cd rust-code-analysis &&
71-
git -c advice.detachedHead=false checkout --recurse-submodules ${head_rev} &&
71+
git -c advice.detachedHead=false checkout ${head_rev} &&
7272
cargo install mdbook --no-default-features --features search,output --vers \"^0.1.0\" &&
7373
cargo doc --release &&
7474
cd rust-code-analysis-book &&
@@ -104,9 +104,9 @@ tasks:
104104
- "apt-get -qq update &&
105105
apt-get -qq install -y zip &&
106106
curl -L https://github.com/mozilla/grcov/releases/latest/download/grcov-linux-x86_64.tar.bz2 | tar jxf - &&
107-
git clone --recursive --quiet ${repository} &&
107+
git clone --quiet ${repository} &&
108108
cd rust-code-analysis &&
109-
git -c advice.detachedHead=false checkout --recurse-submodules ${head_rev} &&
109+
git -c advice.detachedHead=false checkout ${head_rev} &&
110110
cargo test --workspace --verbose --all-features &&
111111
zip -0 ccov.zip `find . -name 'rust_code_analysis*.gc*' -print` &&
112112
../grcov ccov.zip -s . -t lcov --llvm --branch --ignore-not-existing --ignore '/*' -o lcov.info &&
@@ -135,9 +135,9 @@ tasks:
135135
- set PATH=%LIB_PATH%;%PATH%
136136
- rustup-init -yv --default-toolchain stable ^
137137
--default-host x86_64-pc-windows-msvc
138-
- git clone --recursive --quiet ${repository}
138+
- git clone --quiet ${repository}
139139
- cd rust-code-analysis
140-
- git -c advice.detachedHead=false checkout --recurse-submodules ${head_rev}
140+
- git -c advice.detachedHead=false checkout ${head_rev}
141141
- cargo test --workspace --verbose --all-features
142142
mounts:
143143
- content:
@@ -163,9 +163,9 @@ tasks:
163163
command:
164164
- "/bin/bash"
165165
- "-cx"
166-
- "git clone --recursive --quiet ${repository} &&
166+
- "git clone --quiet ${repository} &&
167167
cd rust-code-analysis &&
168-
git -c advice.detachedHead=false checkout --recurse-submodules ${head_rev} &&
168+
git -c advice.detachedHead=false checkout ${head_rev} &&
169169
./check-grammars-crates.sh"
170170
cache:
171171
rust-code-analysis-mozilla-central-repository: /cache
@@ -198,13 +198,13 @@ tasks:
198198
command:
199199
- "/bin/bash"
200200
- "-cx"
201-
- "git clone --recursive --quiet ${repository} &&
201+
- "git clone --quiet ${repository} &&
202202
[ ! -d \"/cache/gecko-dev\" ] &&
203203
git clone --quiet https://github.com/mozilla/gecko-dev.git /cache/gecko-dev || true &&
204204
pushd /cache/gecko-dev && git pull origin master && popd &&
205205
mkdir -p /tmp/mozilla_central_output &&
206206
cd rust-code-analysis &&
207-
git -c advice.detachedHead=false checkout --recurse-submodules ${head_rev} &&
207+
git -c advice.detachedHead=false checkout ${head_rev} &&
208208
cargo build --release --workspace --all-features &&
209209
cargo run --release -p rust-code-analysis-cli -- -p /cache/gecko-dev \
210210
-j4 --metrics -O json -o /tmp/mozilla_central_output"
@@ -234,9 +234,9 @@ tasks:
234234
command:
235235
- "/bin/bash"
236236
- "-cx"
237-
- "git clone --recursive --quiet ${repository} &&
237+
- "git clone --quiet ${repository} &&
238238
cd rust-code-analysis &&
239-
git -c advice.detachedHead=false checkout --recurse-submodules ${head_rev} &&
239+
git -c advice.detachedHead=false checkout ${head_rev} &&
240240
cargo build --workspace --release --target x86_64-unknown-linux-musl &&
241241
cargo package --all-features --target x86_64-unknown-linux-musl &&
242242
pushd rust-code-analysis-cli && cargo package --all-features --target x86_64-unknown-linux-musl && popd &&
@@ -282,9 +282,9 @@ tasks:
282282
- set PATH=%LIB_PATH%;%PATH%
283283
- rustup-init -yv --default-toolchain stable ^
284284
--default-host x86_64-pc-windows-msvc
285-
- git clone --recursive --quiet ${repository}
285+
- git clone --quiet ${repository}
286286
- cd rust-code-analysis
287-
- git -c advice.detachedHead=false checkout --recurse-submodules ${head_rev}
287+
- git -c advice.detachedHead=false checkout ${head_rev}
288288
- cargo build --workspace --release
289289
- 7z a rust-code-analysis-win-cli-x86_64.zip "target\release\rust-code-analysis-cli.exe"
290290
- 7z a rust-code-analysis-win-web-x86_64.zip "target\release\rust-code-analysis-web.exe"
@@ -339,7 +339,7 @@ tasks:
339339
- "-cx"
340340
- "git config --global user.email moz-tools-bot@moz.tools &&
341341
git config --global user.name moz.tools Bot &&
342-
git clone --recursive --quiet ${repository} &&
342+
git clone --quiet ${repository} &&
343343
cd rust-code-analysis &&
344344
taskboot retrieve-artifact --output-path=. --artifacts=public/book.tar.gz &&
345345
tar xfz book.tar.gz -C rust-code-analysis-book &&

check-grammar-crate.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ def compute_ci_metrics(args: argparse.Namespace) -> None:
133133
"git",
134134
"clone",
135135
"--depth=1",
136-
"--recurse-submodules",
137136
"-j8",
138137
"https://github.com/mozilla/rust-code-analysis",
139138
rca_path,

0 commit comments

Comments
 (0)